Table of Contents

Public classSealed RrfQuery

Namespace
Rowles.LeanLucene.Search.Queries
Assembly
Rowles.LeanLucene.dll

Reciprocal Rank Fusion (RRF) query that merges result lists from multiple child queries without requiring score normalisation.

Score formula: score(d) = Σ 1/(k + rank_i(d)) where k defaults to 60.

public sealed class RrfQuery : Query, IEquatable<Query>
Inheritance
RrfQuery
Inherited Members
Extension Methods

Public constructor RrfQuery(int)

Initialises a new RrfQuery with the given rank constant.

Public property Field

Gets the primary field this query targets.

Public property K

The ranking constant k. Higher values reduce the impact of top-ranked results. Default: 60.

Public property Queries

The child queries whose result lists will be fused.

Public method Add(Query)

Adds a child query whose results will be fused. Returns this for chaining.

Public method Combine(TopDocs[], int, int)

Combines multiple TopDocs result sets using RRF scoring.

Public method Equals(object?)

Determines whether the specified object is equal to the current object.

Public method GetHashCode()

Serves as the default hash function.