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

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

A single search request within a batch operation.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#semantic_search

def semantic_search() -> ::Google::Cloud::VectorSearch::V1::SemanticSearch
Returns
  • (::Google::Cloud::VectorSearch::V1::SemanticSearch) — A semantic search.

    Note: The following fields are mutually exclusive: semantic_search, vector_search, text_search. If a field in that set is populated, all other fields in the set will automatically be cleared.

#semantic_search=

def semantic_search=(value) -> ::Google::Cloud::VectorSearch::V1::SemanticSearch
Parameter
  • value (::Google::Cloud::VectorSearch::V1::SemanticSearch) — A semantic search.

    Note: The following fields are mutually exclusive: semantic_search, vector_search, text_search. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::VectorSearch::V1::SemanticSearch) — A semantic search.

    Note: The following fields are mutually exclusive: semantic_search, vector_search, text_search. If a field in that set is populated, all other fields in the set will automatically be cleared.

#text_search

def text_search() -> ::Google::Cloud::VectorSearch::V1::TextSearch
Returns
  • (::Google::Cloud::VectorSearch::V1::TextSearch) — A text search operation.

    Note: The following fields are mutually exclusive: text_search, vector_search, semantic_search. If a field in that set is populated, all other fields in the set will automatically be cleared.

#text_search=

def text_search=(value) -> ::Google::Cloud::VectorSearch::V1::TextSearch
Parameter
  • value (::Google::Cloud::VectorSearch::V1::TextSearch) — A text search operation.

    Note: The following fields are mutually exclusive: text_search, vector_search, semantic_search. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::VectorSearch::V1::TextSearch) — A text search operation.

    Note: The following fields are mutually exclusive: text_search, vector_search, semantic_search. If a field in that set is populated, all other fields in the set will automatically be cleared.

#vector_search

def vector_search() -> ::Google::Cloud::VectorSearch::V1::VectorSearch
Returns
  • (::Google::Cloud::VectorSearch::V1::VectorSearch) — A vector-based search.

    Note: The following fields are mutually exclusive: vector_search, semantic_search, text_search. If a field in that set is populated, all other fields in the set will automatically be cleared.

#vector_search=

def vector_search=(value) -> ::Google::Cloud::VectorSearch::V1::VectorSearch
Parameter
  • value (::Google::Cloud::VectorSearch::V1::VectorSearch) — A vector-based search.

    Note: The following fields are mutually exclusive: vector_search, semantic_search, text_search. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::VectorSearch::V1::VectorSearch) — A vector-based search.

    Note: The following fields are mutually exclusive: vector_search, semantic_search, text_search. If a field in that set is populated, all other fields in the set will automatically be cleared.