All Implemented Interfaces:
Remote
All Known Implementing Classes:
CachedDfSource, RemoteSearchable, MultiSearcher, IndexSearcher, ParallelMultiSearcher, Searcher
Searchable is the abstract network protocol for searching. Implementations provide search over a single index, over multiple indices, and over indices on remote servers.
Queries, filters and sort criteria are designed to be compact so that they may be efficiently passed to a remote index, with only the top-scoring hits being returned, rather than every matching hit.
| Method from org.apache.lucene.search.Searchable Summary: |
|---|
| close, doc, doc, docFreq, docFreqs, explain, maxDoc, rewrite, search, search, search |
| Method from org.apache.lucene.search.Searchable Detail: |
|---|
|
i.
Called by HitCollector implementations. |
nth position. The org.apache.lucene.document.FieldSelector
may be used to determine what org.apache.lucene.document.Field s to load and how they should be loaded.
NOTE: If the underlying Reader (more specifically, the underlying FieldsReader) is closed before the lazy org.apache.lucene.document.Field is
loaded an exception may be thrown. If you want the value of a lazy org.apache.lucene.document.Field to be available after closing you must
explicitly load it or fetch the Document again with a new loader. |
term.
Called by search code to compute term weights. |
term. Returns an array with these
document frequencies. Used to minimize number of remote calls. |
doc scored against
weight.
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. Applications should call Searcher#explain(Query, int) . |
|
|
HitCollector#collect(int,float) 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. |
n
hits for query, applying filter if non-null.
Called by Hits . Applications should usually call Searcher#search(Query) or Searcher#search(Query,Filter) instead. |
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. |