
RrfQuery
- Namespace
- Rowles.LeanCorpus.Search.Queries
- Assembly
- Rowles.LeanCorpus.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
- Implements
- Inherited Members
- Extension Methods
RrfQuery(int)
Initialises a new RrfQuery with the given rank constant.
Field
Gets the single field this query targets, or an empty value for fieldless and multi-field queries.
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.
Visit(QueryVisitor)
Visits this query and its children.