Class: Couchbase::Options::VectorSearch
- Inherits:
-
Object
- Object
- Couchbase::Options::VectorSearch
- Defined in:
- lib/couchbase/options.rb,
/home/runner/work/couchbase-ruby-client/couchbase-ruby-client/lib/couchbase/options.rb
Constant Summary collapse
- DEFAULT =
VectorSearch.new.freeze
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(vector_query_combination: nil) {|self| ... } ⇒ VectorSearch
constructor
A new instance of VectorSearch.
- #to_backend ⇒ Object
Constructor Details
#initialize(vector_query_combination: nil) {|self| ... } ⇒ VectorSearch
Returns a new instance of VectorSearch.
2462 2463 2464 2465 2466 |
# File 'lib/couchbase/options.rb', line 2462 def initialize(vector_query_combination: nil) @vector_query_combination = vector_query_combination yield self if block_given? end |
Instance Attribute Details
#vector_query_combination ⇒ :and, ...
2457 2458 2459 |
# File 'lib/couchbase/options.rb', line 2457 def vector_query_combination @vector_query_combination end |
Instance Method Details
#to_backend ⇒ Object
2468 2469 2470 2471 2472 |
# File 'lib/couchbase/options.rb', line 2468 def to_backend { vector_query_combination: @vector_query_combination, } end |