| java.lang.Object org.apache.lucene.search.Searcher org.apache.lucene.search.MultiSearcher
All known Subclasses: org.apache.lucene.search.ParallelMultiSearcher,
createWeight | protected Weight createWeight(Query original) throws IOException(Code) | | Create weight in multiple index scenario.
Distributed query processing is done in the following steps:
1. rewrite query
2. extract necessary terms
3. collect dfs for these terms from the Searchables
4. create query weight using aggregate dfs.
5. distribute that weight to Searchables
6. merge results
Steps 1-4 are done here, 5+6 in the search() methods
rewritten queries |
getStarts | protected int[] getStarts()(Code) | | |
subDoc | public int subDoc(int n)(Code) | | Returns the document number of document n within its
sub-index.
|
subSearcher | public int subSearcher(int n)(Code) | | Returns index of the searcher for document n in the array
used to construct this searcher.
|
Methods inherited from org.apache.lucene.search.Searcher | abstract public void close() throws IOException(Code)(Java Doc) protected Weight createWeight(Query query) throws IOException(Code)(Java Doc) abstract public Document doc(int i) throws CorruptIndexException, IOException(Code)(Java Doc) abstract public int docFreq(Term term) throws IOException(Code)(Java Doc) public int[] docFreqs(Term[] terms) throws IOException(Code)(Java Doc) public Explanation explain(Query query, int doc) throws IOException(Code)(Java Doc) abstract public Explanation explain(Weight weight, int doc) throws IOException(Code)(Java Doc) public Similarity getSimilarity()(Code)(Java Doc) abstract public int maxDoc() throws IOException(Code)(Java Doc) abstract public Query rewrite(Query query) throws IOException(Code)(Java Doc) final public Hits search(Query query) throws IOException(Code)(Java Doc) public Hits search(Query query, Filter filter) throws IOException(Code)(Java Doc) public Hits search(Query query, Sort sort) throws IOException(Code)(Java Doc) public Hits search(Query query, Filter filter, Sort sort) throws IOException(Code)(Java Doc) public TopFieldDocs search(Query query, Filter filter, int n, Sort sort) throws IOException(Code)(Java Doc) public void search(Query query, HitCollector results) throws IOException(Code)(Java Doc) public void search(Query query, Filter filter, HitCollector results) throws IOException(Code)(Java Doc) public TopDocs search(Query query, Filter filter, int n) throws IOException(Code)(Java Doc) abstract public void search(Weight weight, Filter filter, HitCollector results) throws IOException(Code)(Java Doc) abstract public TopDocs search(Weight weight, Filter filter, int n) throws IOException(Code)(Java Doc) abstract public TopFieldDocs search(Weight weight, Filter filter, int n, Sort sort) throws IOException(Code)(Java Doc) public void setSimilarity(Similarity similarity)(Code)(Java Doc)
|
|
|