java.lang.Objectorg.apache.lucene.search.Searcher
All Implemented Interfaces:
Searchable
Direct Known Subclasses:
CachedDfSource, MultiSearcher, IndexSearcher, ParallelMultiSearcher
Note that you can only access Hits from a Searcher as long as it is not yet closed, otherwise an IOException will be thrown.
| Method from org.apache.lucene.search.Searcher Summary: |
|---|
| close, createWeight, doc, docFreq, docFreqs, explain, explain, getSimilarity, maxDoc, rewrite, search, search, search, search, search, search, search, search, search, search, search, search, setSimilarity |
| Methods from java.lang.Object: |
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method from org.apache.lucene.search.Searcher Detail: |
|---|
|
query |
|
|
|
doc scored against
query.
This is intended to be used in developing Similarity implementations, and, for good performance, should not be displayed with every hit. Computing an explanation is as expensive as executing the query over the entire index. |
|
This defaults to the current value of Similarity#getDefault() . |
|
|
Deprecated! Hits - will be removed in Lucene 3.0. Use
#search(Query, Filter, int) instead.
query. |
Deprecated! Hits - will be removed in Lucene 3.0. Use
#search(Query, Filter, int) instead.
query and
filter. |
Deprecated! Hits - will be removed in Lucene 3.0. Use
#search(Query, Filter, int, Sort) instead.
query sorted by
sort. |
HitCollector#collect(int,float) is called for every matching 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. Note: The |
n
hits for query. |
Deprecated! Hits - will be removed in Lucene 3.0. Use
#search(Query, Filter, int, Sort) instead.
query and filter,
sorted by sort. |
HitCollector#collect(int,float) is called for every matching
document.
Applications should only use this if they need all of the matching documents. The high-level search API (Searcher#search(Query, Filter, int) ) is usually more efficient, as it skips non-high-scoring hits. |
n
hits for query, applying filter if non-null. |
|
|
n hits for query, applying
filter if non-null, and sorting the hits by the criteria in
sort.
Applications should usually call Searcher#search(Query,Filter,Sort) instead. |
|
|