public class AssertingIndexSearcher extends IndexSearcher
IndexSearcher
and Weight
.
TODO: Extend this by more checks, that's just a start.IndexSearcher.LeafSlice
leafContexts, 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. |
protected Query |
wrapFilter(Query query,
Filter filter) |
collectionStatistics, doc, doc, document, explain, explain, getDefaultSimilarity, getIndexReader, getSimilarity, getTopReaderContext, rewrite, search, search, search, search, search, search, search, search, search, search, search, search, search, searchAfter, searchAfter, searchAfter, searchAfter, searchAfter, setSimilarity, slices, termStatistics, toString
public 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 IndexSearcher
IOException
protected Query wrapFilter(Query query, Filter filter)
wrapFilter
in class IndexSearcher
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.