public static class CheckHits.ExplanationAssertingSearcher extends IndexSearcher
CheckHits.ExplanationAsserterIndexSearcher.LeafSliceleafContexts, leafSlices, readerContext| Constructor and Description |
|---|
ExplanationAssertingSearcher(IndexReader r) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkExplanations(Query q) |
void |
search(Query query,
Collector results)
Lower-level search API.
|
TopDocs |
search(Query query,
int n)
Finds the top
n
hits for query. |
TopFieldDocs |
search(Query query,
int n,
Sort sort)
Search implementation with arbitrary sorting and no filter.
|
collectionStatistics, count, createNormalizedWeight, createWeight, doc, doc, doc, explain, explain, getDefaultQueryCache, getDefaultQueryCachingPolicy, getDefaultSimilarity, getIndexReader, getSimilarity, getTopReaderContext, rewrite, search, search, search, search, search, search, search, searchAfter, searchAfter, searchAfter, searchAfter, searchAfter, searchAfter, setDefaultQueryCache, setDefaultQueryCachingPolicy, setQueryCache, setQueryCachingPolicy, setSimilarity, slices, termStatistics, toString, wrapFilterpublic ExplanationAssertingSearcher(IndexReader r)
protected void checkExplanations(Query q) throws IOException
IOExceptionpublic TopFieldDocs search(Query query, int n, Sort sort) throws IOException
IndexSearchersearch in class IndexSearcherquery - The query to search forn - Return only the top n resultssort - The Sort objectSort instanceIOException - if there is a low-level I/O errorpublic void search(Query query, Collector results) throws IOException
IndexSearcherLeafCollector.collect(int) is called for every matching document.
search in class IndexSearcherIOExceptionpublic TopDocs search(Query query, int n) throws IOException
IndexSearchern
hits for query.search in class IndexSearcherIOExceptionCopyright © 2000–2015 The Apache Software Foundation. All rights reserved.