populateScores

fun populateScores(topDocs: Array<ScoreDoc>, searcher: IndexSearcher, query: Query)

Populate scores of the given topDocs.

Parameters

topDocs

the top docs to populate

searcher

the index searcher that has been used to compute topDocs

query

the query that has been used to compute topDocs

Throws

if there is evidence that topDocs have been computed against a different searcher or a different query.