Class: Couchbase::Options::VectorSearch

Inherits:
Object
  • Object
show all
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

Constructor Details

#initialize(vector_query_combination: nil) {|self| ... } ⇒ VectorSearch

Returns a new instance of VectorSearch.

Parameters:

  • vector_query_combination (:and, :or, nil) (defaults to: nil)

Yield Parameters:



2582
2583
2584
2585
2586
# File 'lib/couchbase/options.rb', line 2582

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, ...

Returns:

  • (:and, :or, nil)


2577
2578
2579
# File 'lib/couchbase/options.rb', line 2577

def vector_query_combination
  @vector_query_combination
end

Instance Method Details

#to_backend ⇒ Object



2588
2589
2590
2591
2592
# File 'lib/couchbase/options.rb', line 2588

def to_backend
  {
    vector_query_combination: @vector_query_combination,
  }
end