public class AssertingIndexSearcher extends IndexSearcher
IndexSearcher and Weight.IndexSearcher.LeafSliceleafContexts, leafSlices, readerContext| Constructor and Description |
|---|
AssertingIndexSearcher(Random random,
IndexReader r) |
AssertingIndexSearcher(Random random,
IndexReaderContext context) |
AssertingIndexSearcher(Random random,
IndexReaderContext context,
ExecutorService ex) |
AssertingIndexSearcher(Random random,
IndexReader r,
ExecutorService ex) |
| Modifier and Type | Method and Description |
|---|---|
Weight |
createNormalizedWeight(Query query)
Ensures, that the returned
Weight is not normalized again, which may produce wrong scores. |
Query |
rewrite(Query original)
Expert: called to re-write queries into primitive queries.
|
protected void |
search(List<AtomicReaderContext> leaves,
Weight weight,
Collector collector)
Lower-level search API.
|
String |
toString() |
protected Query |
wrapFilter(Query query,
Filter filter) |
collectionStatistics, doc, doc, doc, document, explain, explain, getDefaultSimilarity, getIndexReader, getSimilarity, getTopReaderContext, search, search, search, search, search, search, search, search, search, search, search, search, searchAfter, searchAfter, searchAfter, searchAfter, searchAfter, setSimilarity, slices, termStatisticspublic AssertingIndexSearcher(Random random, IndexReader r)
public AssertingIndexSearcher(Random random, IndexReaderContext context)
public AssertingIndexSearcher(Random random, IndexReader r, ExecutorService ex)
public AssertingIndexSearcher(Random random, IndexReaderContext context, ExecutorService ex)
public Weight createNormalizedWeight(Query query) throws IOException
Weight is not normalized again, which may produce wrong scores.createNormalizedWeight in class IndexSearcherIOExceptionpublic Query rewrite(Query original) throws IOException
IndexSearcherrewrite in class IndexSearcherIOExceptionprotected Query wrapFilter(Query query, Filter filter)
wrapFilter in class IndexSearcherprotected void search(List<AtomicReaderContext> leaves, Weight weight, Collector collector) throws IOException
IndexSearcher
Collector.collect(int) is called for every document.
NOTE: this method executes the searches on all given leaves exclusively.
To search across all the searchers leaves use IndexSearcher.leafContexts.
search in class IndexSearcherleaves - the searchers leaves to execute the searches onweight - to match documentscollector - to receive hitsIOExceptionpublic String toString()
toString in class IndexSearcherCopyright © 2000–2021 The Apache Software Foundation. All rights reserved.