|
Xindice API version 1.2m1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.xindice.core.query.ftsearch.Searcher
Searcher executes full text queries against list of nodes and returns
nodes that match the query in the order of relevance (score) - most relevant
results will be return first.
Query syntax is the same as syntax of Lucene query, except it does not use
field names.
| Constructor Summary | |
Searcher(org.w3c.dom.NodeList nodes,
org.apache.lucene.analysis.Analyzer analyzer)
Builds new Searcher based on list of nodes and analyzer. |
|
| Method Summary | |
NodeSet |
search(String query)
Executes query against list of nodes and returns matches in the order of relevance (score). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Searcher(org.w3c.dom.NodeList nodes,
org.apache.lucene.analysis.Analyzer analyzer)
nodes - List of nodes to searchanalyzer - Analyzer that will be used to tokenize text of the nodes.
Choice of analyzer affects query results.Analyzer| Method Detail |
public NodeSet search(String query)
throws org.apache.lucene.queryParser.ParseException
query - Full text query
org.apache.lucene.queryParser.ParseException - Query failed to be parsed
|
Xindice API version 1.2m1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||