Table of Contents

Public classSealed Bm25Similarity

Namespace
Rowles.LeanLucene.Search.Scoring
Assembly
Rowles.LeanLucene.dll

BM25 scoring (default). Delegates to Bm25Scorer.

public sealed class Bm25Similarity : ISimilarity
Bm25Similarity
Implements

Public field Instance

Gets the shared singleton instance of the BM25 similarity.

Public method PrecomputeFactors(int, int, float)

Precomputes factors constant for a given term across all documents.

Public method Score(int, int, float, int, int)

Computes the score for a single term occurrence in a document.

Public method ScorePrecomputed(float, float, int, int)

Scores using precomputed factors for hot-path scoring.