public static class CheckHits.ExplanationAssertingSearcher extends IndexSearcher
CheckHits.ExplanationAsserterdocStarts, subReaders, subSearchers| 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.
|
void |
search(Query query,
Filter filter,
Collector results)
Lower-level search API.
|
TopDocs |
search(Query query,
Filter filter,
int n)
Finds the top
n
hits for query, applying filter if non-null. |
TopFieldDocs |
search(Query query,
Filter filter,
int n,
Sort sort)
Search implementation with arbitrary sorting.
|
close, createNormalizedWeight, doc, doc, docFreq, explain, explain, gatherSubReaders, getIndexReader, getSimilarity, getSubReaders, maxDoc, rewrite, search, search, search, search, search, search, search, searchAfter, searchAfter, setDefaultFieldSortScoring, setSimilarity, toStringcreateWeight, docFreqspublic ExplanationAssertingSearcher(IndexReader r) throws java.io.IOException
java.io.IOExceptionprotected void checkExplanations(Query q) throws java.io.IOException
java.io.IOExceptionpublic TopFieldDocs search(Query query, Filter filter, int n, Sort sort) throws java.io.IOException
IndexSearchern 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(boolean, boolean) to
enable scoring.
search in class IndexSearcherjava.io.IOExceptionpublic void search(Query query, Collector results) throws java.io.IOException
IndexSearcherCollector.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 score passed to this method is a raw score.
In other words, the score will not necessarily be a float whose value is
between 0 and 1.
search in class IndexSearcherjava.io.IOExceptionpublic void search(Query query, Filter filter, Collector results) throws java.io.IOException
IndexSearcherCollector.collect(int) is called for every matching
document.
Collector-based access to remote indexes is discouraged.
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.
search in class IndexSearcherquery - to match documentsfilter - if non-null, used to permit documents to be collected.results - to receive hitsjava.io.IOExceptionpublic TopDocs search(Query query, Filter filter, int n) throws java.io.IOException
IndexSearchern
hits for query, applying filter if non-null.search in class IndexSearcherjava.io.IOExceptionCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.