checkHitCollector
fun checkHitCollector(random: Random, query: Query, defaultFieldName: String, searcher: IndexSearcher, results: IntArray)
Tests that a query matches the an expected set of documents using a HitCollector.
Note that when using the HitCollector API, documents will be collected if they "match" regardless of what their score is.
Parameters
query
the query to test
searcher
the searcher to test the query against
defaultFieldName
used for displaying the query in assertion messages
results
a list of documentIds that must match the query
See also
.checkHits