MultiNormsLeafSimScorer

Scorer that sums document's norms from multiple fields.

For all fields, norms must be encoded using [SmallFloat.intToByte4]. This scorer also requires that either all fields or no fields have norms enabled. Having only some fields with norms enabled can result in errors or undefined behavior.

Constructors

Link copied to clipboard
constructor(scorer: Similarity.SimScorer, reader: LeafReader, normFields: Collection<CombinedFieldQuery.FieldAndWeight>, needsScores: Boolean)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun explain(doc: Int, freqExpl: Explanation): Explanation

Explain the score for the provided document assuming the given term document frequency. This method must be called on non-decreasing sequences of doc ids.

Link copied to clipboard
Link copied to clipboard
fun score(doc: Int, freq: Float): Float

Score the provided document assuming the given term document frequency. This method must be called on non-decreasing sequences of doc ids.