Package org.apache.lucene.tests.search
Class CheckHits.ExplanationAsserter
java.lang.Object
org.apache.lucene.search.SimpleCollector
org.apache.lucene.tests.search.CheckHits.ExplanationAsserter
- All Implemented Interfaces:
Collector
,LeafCollector
- Enclosing class:
- CheckHits
Asserts that the score explanation for every document matching a query corresponds with the
true score.
NOTE: this HitCollector should only be used with the Query and Searcher specified at when it is constructed.
-
Constructor Summary
ConstructorDescriptionExplanationAsserter
(Query q, String defaultFieldName, IndexSearcher s) Constructs an instance which does shallow tests on the ExplanationExplanationAsserter
(Query q, String defaultFieldName, IndexSearcher s, boolean deep) -
Method Summary
Modifier and TypeMethodDescriptionvoid
collect
(int doc) protected void
doSetNextReader
(LeafReaderContext context) void
Methods inherited from class org.apache.lucene.search.SimpleCollector
getLeafCollector
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.lucene.search.LeafCollector
competitiveIterator
-
Constructor Details
-
ExplanationAsserter
Constructs an instance which does shallow tests on the Explanation -
ExplanationAsserter
-
-
Method Details
-
setScorer
- Specified by:
setScorer
in interfaceLeafCollector
- Overrides:
setScorer
in classSimpleCollector
- Throws:
IOException
-
collect
- Specified by:
collect
in interfaceLeafCollector
- Specified by:
collect
in classSimpleCollector
- Throws:
IOException
-
doSetNextReader
- Overrides:
doSetNextReader
in classSimpleCollector
- Throws:
IOException
-
scoreMode
-