Class: Couchbase::VectorSearch

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/search_options.rb

Overview

Stability:

  • Uncommitted: This API may change in the future.

Instance Method Summary collapse

Constructor Details

#initialize(vector_queries, options = Options::VectorSearch::DEFAULT) ⇒ VectorSearch

Constructs a VectorSearch instance, which allows one or more individual vector queries to be executed.

Parameters:

Stability:

  • Uncommitted: This API may change in the future.



1050
1051
1052
1053
# File 'lib/couchbase/search_options.rb', line 1050

def initialize(vector_queries, options = Options::VectorSearch::DEFAULT)
  @vector_queries = vector_queries.respond_to?(:each) ? vector_queries : [vector_queries]
  @options = options
end