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,
boolean needsScores)
Ensures, that the returned
Weight is not normalized again, which may produce wrong scores. |
Weight |
createWeight(Query query,
boolean needsScores) |
Query |
rewrite(Query original) |
protected void |
search(List<LeafReaderContext> leaves,
Weight weight,
Collector collector) |
String |
toString() |
collectionStatistics, count, doc, doc, doc, explain, explain, getDefaultQueryCache, getDefaultQueryCachingPolicy, getDefaultSimilarity, getIndexReader, getQueryCache, getQueryCachingPolicy, getSimilarity, getTopReaderContext, search, search, search, search, search, searchAfter, searchAfter, searchAfter, setDefaultQueryCache, setDefaultQueryCachingPolicy, setQueryCache, setQueryCachingPolicy, 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, boolean needsScores) throws IOException
Weight is not normalized again, which may produce wrong scores.createNormalizedWeight in class IndexSearcherIOExceptionpublic Weight createWeight(Query query, boolean needsScores) throws IOException
createWeight in class IndexSearcherIOExceptionpublic Query rewrite(Query original) throws IOException
rewrite in class IndexSearcherIOExceptionprotected void search(List<LeafReaderContext> leaves, Weight weight, Collector collector) throws IOException
search in class IndexSearcherIOExceptionpublic String toString()
toString in class IndexSearcherCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.