Vector Search V1 API - Class Google::Cloud::VectorSearch::V1::TextQuery (v0.6.0)

Reference documentation and code samples for the Vector Search V1 API class Google::Cloud::VectorSearch::V1::TextQuery.

A leaf-level text query targeting one or more data fields. When multiple fields are specified, this is equivalent to combining per-field matches with an OR operator (i.e. the query matches if the text is found in any of the listed fields).

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#fields

def fields() -> ::Array<::String>
Returns
  • (::Array<::String>) — Required. The data fields to search against.

#fields=

def fields=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Required. The data fields to search against.
Returns
  • (::Array<::String>) — Required. The data fields to search against.

#match_type

def match_type() -> ::Google::Cloud::VectorSearch::V1::TextQuery::MatchType
Returns

#match_type=

def match_type=(value) -> ::Google::Cloud::VectorSearch::V1::TextQuery::MatchType
Parameter
Returns

#query_enhancement

def query_enhancement() -> ::Google::Cloud::VectorSearch::V1::QueryEnhancement
Returns

#query_enhancement=

def query_enhancement=(value) -> ::Google::Cloud::VectorSearch::V1::QueryEnhancement
Parameter
Returns

#text

def text() -> ::String
Returns
  • (::String) — Required. The text to search for.

#text=

def text=(value) -> ::String
Parameter
  • value (::String) — Required. The text to search for.
Returns
  • (::String) — Required. The text to search for.