SearchScoringReciprocalRankFusion
in package
implements
JsonSerializable, SearchScoring
Merges the FTS and vector result sets by rank rather than by raw score.
It works well with the server defaults, and is the recommended strategy.
Note: available from Couchbase Server 8.1.
Tags
Interfaces, Classes, Traits and Enums
- JsonSerializable
- SearchScoring
- Common interface for the scoring mode of a search query.
Table of Contents
- $rankConstant : int|null
- $windowSize : int|null
- build() : SearchScoringReciprocalRankFusion
- Static helper to keep code more readable
- rankConstant() : SearchScoringReciprocalRankFusion
- Sets the rank constant of the Reciprocal Rank Fusion formula.
- windowSize() : SearchScoringReciprocalRankFusion
- Sets how many results per list are considered for fusion.
Properties
$rankConstant
private
int|null
$rankConstant
= null
$windowSize
private
int|null
$windowSize
= null
Methods
build()
Static helper to keep code more readable
public
static build() : SearchScoringReciprocalRankFusion
Tags
Return values
SearchScoringReciprocalRankFusion —rankConstant()
Sets the rank constant of the Reciprocal Rank Fusion formula.
public
rankConstant(int $rankConstant) : SearchScoringReciprocalRankFusion
Parameters
- $rankConstant : int
-
the rank constant
Tags
Return values
SearchScoringReciprocalRankFusion —windowSize()
Sets how many results per list are considered for fusion.
public
windowSize(int $windowSize) : SearchScoringReciprocalRankFusion
Parameters
- $windowSize : int
-
the window size