public class ShardSearchingTestBase.NodeState.ShardIndexSearcher extends IndexSearcher
IndexSearcher.LeafSlice| Modifier and Type | Field and Description |
|---|---|
int |
myNodeID |
long[] |
nodeVersions |
leafContexts, leafSlices, readerContext| Constructor and Description |
|---|
ShardIndexSearcher(long[] nodeVersions,
IndexReader localReader,
int nodeID) |
| Modifier and Type | Method and Description |
|---|---|
CollectionStatistics |
collectionStatistics(String field)
Returns
CollectionStatistics for a field. |
TopDocs |
localSearch(Query query,
int numHits) |
TopFieldDocs |
localSearch(Query query,
int numHits,
Sort sort) |
TopDocs |
localSearchAfter(ScoreDoc after,
Query query,
int numHits) |
Query |
rewrite(Query original)
Expert: called to re-write queries into primitive queries.
|
TopDocs |
search(Query query,
int numHits)
Finds the top
n
hits for query. |
TopFieldDocs |
search(Query query,
int numHits,
Sort sort)
Search implementation with arbitrary sorting and no filter.
|
TopDocs |
searchAfter(ScoreDoc after,
Query query,
int numHits)
Finds the top
n
hits for query where all results are after a previous
result (after). |
TermStatistics |
termStatistics(Term term,
TermContext context)
Returns
TermStatistics for a term. |
count, createNormalizedWeight, createWeight, doc, doc, doc, explain, explain, getDefaultQueryCache, getDefaultQueryCachingPolicy, getDefaultSimilarity, getIndexReader, getSimilarity, getTopReaderContext, search, search, search, search, search, search, search, search, searchAfter, searchAfter, searchAfter, searchAfter, searchAfter, setDefaultQueryCache, setDefaultQueryCachingPolicy, setQueryCache, setQueryCachingPolicy, setSimilarity, slices, toString, wrapFilterpublic ShardIndexSearcher(long[] nodeVersions,
IndexReader localReader,
int nodeID)
public Query rewrite(Query original) throws IOException
IndexSearcherrewrite in class IndexSearcherIOExceptionpublic TermStatistics termStatistics(Term term, TermContext context) throws IOException
IndexSearcherTermStatistics for a term.
This can be overridden for example, to return a term's statistics
across a distributed collection.termStatistics in class IndexSearcherIOExceptionpublic CollectionStatistics collectionStatistics(String field) throws IOException
IndexSearcherCollectionStatistics for a field.
This can be overridden for example, to return a field's statistics
across a distributed collection.collectionStatistics in class IndexSearcherIOExceptionpublic TopDocs search(Query query, int numHits) throws IOException
IndexSearchern
hits for query.search in class IndexSearcherIOExceptionpublic TopDocs localSearch(Query query, int numHits) throws IOException
IOExceptionpublic TopDocs searchAfter(ScoreDoc after, Query query, int numHits) throws IOException
IndexSearchern
hits for query where all results are after a previous
result (after).
By passing the bottom result from a previous page as after,
this method can be used for efficient 'deep-paging' across potentially
large result sets.
searchAfter in class IndexSearcherIOExceptionpublic TopDocs localSearchAfter(ScoreDoc after, Query query, int numHits) throws IOException
IOExceptionpublic TopFieldDocs search(Query query, int numHits, Sort sort) throws IOException
IndexSearchersearch in class IndexSearcherquery - The query to search fornumHits - Return only the top n resultssort - The Sort objectSort instanceIOException - if there is a low-level I/O errorpublic TopFieldDocs localSearch(Query query, int numHits, Sort sort) throws IOException
IOExceptionCopyright © 2000–2015 The Apache Software Foundation. All rights reserved.