PerFieldSimilarityWrapper
Provides the ability to use a different Similarity for different fields.
Subclasses should implement .get to return an appropriate Similarity (for example, using field-specific parameter values) for the field.
Properties
Functions
Link copied to clipboard
Computes the normalization value for a field at index-time.
Link copied to clipboard
Returns a Similarity for scoring a field.
Link copied to clipboard
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.