checkExplanations

fun checkExplanations(query: Query, defaultFieldName: String?, searcher: IndexSearcher, deep: Boolean = false)

Asserts that the explanation value for every document matching a query corresponds with the true score.

Parameters

query

the query to test

searcher

the searcher to test the query against

defaultFieldName

used for displaing the query in assertion messages

See also

.checkExplanations