scorer

open override fun scorer(boost: Float, collectionStats: CollectionStatistics, vararg termStats: TermStatistics): Similarity.SimScorer

Compute any collection-level weight (e.g. IDF, average document length, etc) needed for scoring a query.

Return

SimWeight object with the information this Similarity needs to score a query.

Parameters

boost

a multiplicative factor to apply to the produces scores

collectionStats

collection-level statistics, such as the number of tokens in the collection.

termStats

term-level statistics, such as the document frequency of a term across the collection.