Class: Couchbase::SearchScoring::SearchScoringReciprocalRankFusion
- Inherits:
-
SearchScoring
- Object
- SearchScoring
- Couchbase::SearchScoring::SearchScoringReciprocalRankFusion
- Defined in:
- lib/couchbase/search_options.rb,
/home/runner/work/couchbase-ruby-client/couchbase-ruby-client/lib/couchbase/search_options.rb
Overview
SearchScoringReciprocalRankFusion merges the FTS and vector result sets of a hybrid search by rank rather
than raw score.
Instance Attribute Summary collapse
-
#rank_constant ⇒ Integer?
The rank constant used when merging the result sets (the server defaults this to 60).
-
#window_size ⇒ Integer?
How many results per list are considered for fusion (the server defaults this to the request limit).
Instance Method Summary collapse
-
#initialize {|| ... } ⇒ SearchScoringReciprocalRankFusion
constructor
A new instance of SearchScoringReciprocalRankFusion.
Constructor Details
#initialize {|| ... } ⇒ SearchScoringReciprocalRankFusion
Returns a new instance of SearchScoringReciprocalRankFusion.
1297 1298 1299 1300 |
# File 'lib/couchbase/search_options.rb', line 1297 def initialize super yield self if block_given? end |
Instance Attribute Details
#rank_constant ⇒ Integer?
Returns the rank constant used when merging the result sets (the server defaults this to 60).
1290 1291 1292 |
# File 'lib/couchbase/search_options.rb', line 1290 def rank_constant @rank_constant end |
#window_size ⇒ Integer?
Returns how many results per list are considered for fusion (the server defaults this to the request limit).
1294 1295 1296 |
# File 'lib/couchbase/search_options.rb', line 1294 def window_size @window_size end |