Couchbase C++ SDK 1.5.0 (rev. 380784c)
Loading...
Searching...
No Matches
search_scoring_relative_score_fusion Class Reference

Merges the FTS and vector result sets by normalized score rather than by rank. More...

#include <couchbase/search_scoring_relative_score_fusion.hxx>

Inheritance diagram for search_scoring_relative_score_fusion:
Inheritance graph

Public Member Functions

 search_scoring_relative_score_fusion ()=default
auto window_size (std::uint32_t window_size) -> search_scoring_relative_score_fusion &
 How many results per list are considered for fusion.
auto build () const -> search_scoring::built override
 Returns the scoring mode as an immutable value.
Public Member Functions inherited from search_scoring
virtual ~search_scoring ()=default

Additional Inherited Members

Protected Member Functions inherited from search_scoring
 search_scoring ()=default

Detailed Description

Merges the FTS and vector result sets by normalized score rather than by rank.

Note
available from Couchbase Server 8.1. Setting it makes the SDK check for the score fusion cluster capability, and fail the operation with feature_not_available if the cluster does not advertise it.
Since
1.5.0
Uncommitted
Might be changed in the future, and eventually promoted to committed

Constructor & Destructor Documentation

◆ search_scoring_relative_score_fusion()

search_scoring_relative_score_fusion ( )
default

Member Function Documentation

◆ build()

auto build ( ) const -> search_scoring::built
inlinenodiscardoverridevirtual

Returns the scoring mode as an immutable value.

Returns
the scoring mode as an immutable value
Since
1.5.0
Internal
Internal interface

Implements search_scoring.

◆ window_size()

auto window_size ( std::uint32_t window_size) -> search_scoring_relative_score_fusion &
inline

How many results per list are considered for fusion.

Parameters
window_sizethe window size
Returns
this scoring mode for chaining purposes.
Since
1.5.0
Uncommitted
Might be changed in the future, and eventually promoted to committed

The documentation for this class was generated from the following file: