Closeable
, AutoCloseable
, Searchable
public class AssertingIndexSearcher extends IndexSearcher
IndexSearcher
and Weight
.
TODO: Extend this by more checks, that's just a start.docStarts, subReaders, subSearchers
Constructor | Description |
---|---|
AssertingIndexSearcher(IndexReader r) |
|
AssertingIndexSearcher(IndexReader r,
ExecutorService ex) |
Modifier and Type | Method | Description |
---|---|---|
Weight |
createNormalizedWeight(Query query) |
Ensures, that the returned
Weight is not normalized again, which may produce wrong scores. |
close, doc, doc, docFreq, explain, explain, gatherSubReaders, getIndexReader, getSimilarity, getSubReaders, maxDoc, rewrite, search, search, search, search, search, search, search, search, search, search, search, searchAfter, searchAfter, setDefaultFieldSortScoring, setSimilarity, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
createWeight, docFreqs
public AssertingIndexSearcher(IndexReader r)
public AssertingIndexSearcher(IndexReader r, ExecutorService ex)
public Weight createNormalizedWeight(Query query) throws IOException
Weight
is not normalized again, which may produce wrong scores.createNormalizedWeight
in class IndexSearcher
IOException
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.