Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::SearchRequest::SearchAsYouTypeSpec::Field (v2.12.0)

Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::SearchRequest::SearchAsYouTypeSpec::Field.

A schema field to be used for Search As You Type scoring on this request. Overrides any data-store-level Search As You Type field configuration for the duration of the request.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#key

def key() -> ::String
Returns
  • (::String) — Required. A field key that has been indexed for Search As You Type.

#key=

def key=(value) -> ::String
Parameter
  • value (::String) — Required. A field key that has been indexed for Search As You Type.
Returns
  • (::String) — Required. A field key that has been indexed for Search As You Type.

#weight

def weight() -> ::Float
Returns
  • (::Float) — Optional. Weight for scores from this field. Defaults to 1.0 if not specified.

#weight=

def weight=(value) -> ::Float
Parameter
  • value (::Float) — Optional. Weight for scores from this field. Defaults to 1.0 if not specified.
Returns
  • (::Float) — Optional. Weight for scores from this field. Defaults to 1.0 if not specified.