Retail V2 API - Class Google::Cloud::Retail::V2::Rule::ReplacementAction (v0.17.0)

Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::Rule::ReplacementAction.

Replaces a term in the query. Multiple replacement candidates can be specified. All query_terms will be replaced with the replacement term. Example: Replace "gShoe" with "google shoe".

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#query_terms

def query_terms() -> ::Array<::String>
Returns
  • (::Array<::String>) — Terms from the search query. Will be replaced by replacement term. Can specify up to 100 terms.

#query_terms=

def query_terms=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) — Terms from the search query. Will be replaced by replacement term. Can specify up to 100 terms.
Returns
  • (::Array<::String>) — Terms from the search query. Will be replaced by replacement term. Can specify up to 100 terms.

#replacement_term

def replacement_term() -> ::String
Returns
  • (::String) — Term that will be used for replacement.

#replacement_term=

def replacement_term=(value) -> ::String
Parameter
  • value (::String) — Term that will be used for replacement.
Returns
  • (::String) — Term that will be used for replacement.

#term

def term() -> ::String
Returns
  • (::String) — Will be [deprecated = true] post migration;

#term=

def term=(value) -> ::String
Parameter
  • value (::String) — Will be [deprecated = true] post migration;
Returns
  • (::String) — Will be [deprecated = true] post migration;