java.lang.Objectorg.apache.lucene.search.Searcher
All Implemented Interfaces:
Searchable
Direct Known Subclasses:
MultiSearcher, ParallelMultiSearcher, CachedDfSource, IndexSearcher
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, doc, docFreq, docFreqs, explain, explain, getSimilarity, maxDoc, rewrite, search, search, search, search, search, search, search, search, setSimilarity |
Methods from java.lang.Object: |
---|
clone, equals, finalize, 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() . |
|
|
Collector#collect(int) 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, int) ) is usually more efficient, as it skips non-high-scoring hits. Note: The |
n
hits for query . |
Collector#collect(int) 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 .
NOTE: this does not compute scores by default; use IndexSearcher#setDefaultFieldSortScoring to enable scoring. |
|
|