| java.lang.Object org.apache.lucene.search.Searcher org.apache.lucene.search.MultiSearcher org.apache.lucene.search.ParallelMultiSearcher
Method Summary | |
public int | docFreq(Term term) | public Query | rewrite(Query original) | public TopDocs | search(Weight weight, Filter filter, int nDocs) A search implementation which spans a new thread for each
Searchable, waits for each search to complete and merge
the results back together. | public TopFieldDocs | search(Weight weight, Filter filter, int nDocs, Sort sort) A search implementation allowing sorting which spans a new thread for each
Searchable, waits for each search to complete and merges
the results back together. | public void | search(Weight weight, Filter filter, HitCollector results) Lower-level search API.
HitCollector.collect(intfloat) is called for every non-zero
scoring document.
Applications should only use this if they need all of the
matching documents. |
ParallelMultiSearcher | public ParallelMultiSearcher(Searchable[] searchables) throws IOException(Code) | | Creates a searcher which searches searchables.
|
search | public TopDocs search(Weight weight, Filter filter, int nDocs) throws IOException(Code) | | A search implementation which spans a new thread for each
Searchable, waits for each search to complete and merge
the results back together.
|
search | public TopFieldDocs search(Weight weight, Filter filter, int nDocs, Sort sort) throws IOException(Code) | | A search implementation allowing sorting which spans a new thread for each
Searchable, waits for each search to complete and merges
the results back together.
|
search | public void search(Weight weight, Filter filter, HitCollector results) throws IOException(Code) | | Lower-level search API.
HitCollector.collect(intfloat) 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.
Parameters: weight - to match documents Parameters: filter - if non-null, a bitset used to eliminate some documents Parameters: results - to receive hits |
Methods inherited from org.apache.lucene.search.MultiSearcher | public void close() throws IOException(Code)(Java Doc) protected Weight createWeight(Query original) throws IOException(Code)(Java Doc) public Document doc(int n) throws CorruptIndexException, IOException(Code)(Java Doc) public Document doc(int n, FieldSelector fieldSelector) throws CorruptIndexException, IOException(Code)(Java Doc) public int docFreq(Term term) throws IOException(Code)(Java Doc) public Explanation explain(Weight weight, int doc) throws IOException(Code)(Java Doc) public Searchable[] getSearchables()(Code)(Java Doc) protected int[] getStarts()(Code)(Java Doc) public int maxDoc() throws IOException(Code)(Java Doc) public Query rewrite(Query original) throws IOException(Code)(Java Doc) public TopDocs search(Weight weight, Filter filter, int nDocs) throws IOException(Code)(Java Doc) public TopFieldDocs search(Weight weight, Filter filter, int n, Sort sort) throws IOException(Code)(Java Doc) public void search(Weight weight, Filter filter, HitCollector results) throws IOException(Code)(Java Doc) public int subDoc(int n)(Code)(Java Doc) public int subSearcher(int n)(Code)(Java Doc)
|
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)
|
|
|