
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
RrfQuery(int)
Initialises a new RrfQuery with the given rank constant.
Field
Gets the primary field this query targets.
K
The ranking constant k. Higher values reduce the impact of top-ranked results. Default: 60.
Queries
The child queries whose result lists will be fused.
Add(Query)
Adds a child query whose results will be fused. Returns this for chaining.
Combine(TopDocs[], int, int)
Combines multiple TopDocs result sets using RRF scoring.
Equals(object?)
Determines whether the specified object is equal to the current object.
GetHashCode()
Serves as the default hash function.