|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.lucene.search.Searcher | +--org.apache.lucene.search.MultiSearcher
Implements search over a set of Searchers
.
Constructor Summary | |
MultiSearcher(Searcher[] searchers)
Creates a searcher which searches searchers. |
Method Summary | |
void |
close()
Frees resources associated with this Searcher . |
Document |
doc(int n)
For use by HitCollector implementations. |
void |
search(Query query,
Filter filter,
HitCollector results)
Lower-level search API. |
int |
searcherIndex(int n)
For use by HitCollector implementations to identify the
index of the sub-searcher that a particular hit came from. |
Methods inherited from class org.apache.lucene.search.Searcher |
search, search, search |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MultiSearcher(Searcher[] searchers) throws IOException
Method Detail |
public final void close() throws IOException
Searcher
.
close
in class Searcher
IOException
public final Document doc(int n) throws IOException
HitCollector
implementations.
doc
in class Searcher
IOException
public final int searcherIndex(int n)
HitCollector
implementations to identify the
index of the sub-searcher that a particular hit came from.
public final void search(Query query, Filter filter, HitCollector results) throws IOException
HitCollector.collect(int,float)
is called for every non-zero
scoring document.
Applications should only use this if they need all of the
matching documents. The high-level search API (Searcher.search(Query)
) is usually more efficient, as it skips
non-high-scoring hits.
search
in class Searcher
query
- to match documentsfilter
- if non-null, a bitset used to eliminate some documentsresults
- to receive hits
IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |