Table of Contents

Public classSealed TfIdfSimilarity

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

Classic TF-IDF scoring model.

public sealed class TfIdfSimilarity : ISimilarity
TfIdfSimilarity
Implements

Public field Instance

Gets the shared singleton instance of the TF-IDF 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.