You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by bu...@apache.org on 2003/05/12 03:36:58 UTC
DO NOT REPLY [Bug 19834] New: -
Suggested tag library for searching a lucene index
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19834>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=19834
Suggested tag library for searching a lucene index
Summary: Suggested tag library for searching a lucene index
Product: Lucene
Version: 1.2
Platform: All
OS/Version: All
Status: NEW
Severity: Enhancement
Priority: Other
Component: Search
AssignedTo: lucene-dev@jakarta.apache.org
ReportedBy: blaplante@netwebapps.com
The Search custom tag is an iteration tag that loops over the results of
criteria passed to the Lucene search engine.
This tag supports parameters for passing the search criteria to the
search engine
and then returns information about the result set to the page
programmer through the
name used in this tags ID attribute.
Any field stored in the search index will be accessible after the
start tag has run
by calling the result set's someID.getField(String name) method which
will locate the
value of the field and return it as a string. In the event that no
such field exists
it will return an empty string.
If you need to get a list of the field names ahead of time you can
call the tags's getFields()
method and it will return you a Set of field names that can be
iterated over as you will
see in the result.jsp example provided with this documentation.
The object passed back through the tag's ID attribute is the current
instance of the tag
itself, so all of the public information for this instance is
available and you will see
more reference to this in the tag reference section.
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-dev-help@jakarta.apache.org