Class: Couchbase::VectorQuery
- Inherits:
-
Object
- Object
- Couchbase::VectorQuery
- Defined in:
- lib/couchbase/search_options.rb,
/code/couchbase-ruby-client/lib/couchbase/search_options.rb
Overview
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(vector_field_name, vector_query) {|self| ... } ⇒ VectorQuery
constructor
Constructs a
VectorQuery
instance.
Constructor Details
#initialize(vector_field_name, vector_query) ⇒ VectorQuery #initialize(vector_field_name, base64_vector_query) ⇒ VectorQuery
Constructs a VectorQuery
instance
1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 |
# File 'lib/couchbase/search_options.rb', line 1087 def initialize(vector_field_name, vector_query) @vector_field_name = vector_field_name if vector_query.respond_to?(:to_str) @base64_vector_query = vector_query.to_str else @vector_query = vector_query end yield self if block_given? end |
Instance Attribute Details
#boost ⇒ Float?
1074 1075 1076 |
# File 'lib/couchbase/search_options.rb', line 1074 def boost @boost end |
#num_candidates ⇒ Integer?
1071 1072 1073 |
# File 'lib/couchbase/search_options.rb', line 1071 def num_candidates @num_candidates end |