CheckHits
Utility class for asserting expected hits in tests.
Types
Asserts that the score explanation for every document matching a query corresponds with the true score.
an IndexSearcher that implicitly checks hte explanation of every match whenever it executes a search.
Asserts that the Matches from a query is non-null whenever the document its created for is a hit.
Just collects document ids into a set.
Functions
Tests that a Hits has an expected order of documents
Asserts that the explanation value for every document matching a query corresponds with the true score.
Tests that a query matches the an expected set of documents using a HitCollector.
Asserts that the result of calling Weight.matches for every document matching a query returns a non-null Matches
Tests that all documents up to maxDoc which are not in the expected result set, have an explanation which indicates that the document does not match
Assert that an explanation has the expected score, and optionally that its sub-details max/sum/factor match to that score.