public static class CheckHits.ExplanationAssertingSearcher extends IndexSearcher
CheckHits.ExplanationAsserter
IndexSearcher.LeafSlice
leafContexts, 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.
|
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.
|
collectionStatistics, createNormalizedWeight, doc, doc, doc, document, explain, explain, getDefaultSimilarity, getIndexReader, getSimilarity, getTopReaderContext, rewrite, search, search, search, search, search, search, search, search, search, searchAfter, searchAfter, searchAfter, searchAfter, searchAfter, setSimilarity, slices, termStatistics, toString, wrapFilter
public ExplanationAssertingSearcher(IndexReader r)
protected void checkExplanations(Query q) throws IOException
IOException
public TopFieldDocs search(Query query, Filter filter, int n, Sort sort) throws IOException
IndexSearcher
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.search(Query,Filter,int,Sort,boolean,boolean)
to
control scoring.
search
in class IndexSearcher
IOException
public void search(Query query, Collector results) throws IOException
IndexSearcher
Collector.collect(int)
is called for every matching document.
search
in class IndexSearcher
IOException
public void search(Query query, Filter filter, Collector results) throws IOException
IndexSearcher
Collector.collect(int)
is called for every matching
document.
search
in class IndexSearcher
query
- to match documentsfilter
- if non-null, used to permit documents to be collected.results
- to receive hitsIOException
public TopDocs search(Query query, Filter filter, int n) throws IOException
IndexSearcher
n
hits for query
, applying filter
if non-null.search
in class IndexSearcher
IOException
Copyright © 2000–2022 The Apache Software Foundation. All rights reserved.