| Prev Class | Next Class | Frames | No Frames |
| Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
java.lang.Objectorg.apache.lucene.search.Searcherorg.apache.lucene.search.MultiSearcherpublic class MultiSearcherextends SearcherSearchables.
Applications usually need only call the inherited search(Query)
or search(Query,Filter) methods.
Constructor Summary | |
| |
Method Summary | |
void |
|
Document |
|
int | |
Explanation | |
protected int[] | |
int |
|
Query | |
TopDocs | |
TopFieldDocs | |
void |
|
int |
|
int |
|
int |
|
Methods inherited from class org.apache.lucene.search.Searcher | |
getSimilarity, search, search, search, search, search, setSimilarity | |
public MultiSearcher(Searchable[] searchables) throws IOException
Creates a searcher which searches searchables.
public Explanation explain(Query query, int doc) throws IOException
- Specified by:
- explain in interface Searchable
protected int[] getStarts()
public Query rewrite(Query original) throws IOException
- Specified by:
- rewrite in interface Searchable
public TopDocs search(Query query, Filter filter, int nDocs) throws IOException
- Specified by:
- search in interface Searchable
public TopFieldDocs search(Query query, Filter filter, int n, Sort sort) throws IOException
- Specified by:
- search in interface Searchable
public void search(Query query, Filter filter, HitCollector results) throws IOException
- Specified by:
- search in interface Searchable
public int subDoc(int n)
Returns the document number of documentnwithin its sub-index.
public int subSearcher(int n)
Returns index of the searcher for documentnin the array used to construct this searcher.