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.



1055
1056
1057
1058
# File 'lib/couchbase/search_options.rb', line 1055

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