View Source GoogleApi.Retail.V2.Model.GoogleCloudRetailV2RuleOnewaySynonymsAction (google_api_retail v0.19.1)

Maps a set of terms to a set of synonyms. Set of synonyms will be treated as synonyms of each query term only. query_terms will not be treated as synonyms of each other. Example: "sneakers" will use a synonym of "shoes". "shoes" will not use a synonym of "sneakers".

Attributes

  • onewayTerms (type: list(String.t), default: nil) - Will be [deprecated = true] post migration;
  • queryTerms (type: list(String.t), default: nil) - Terms from the search query. Will treat synonyms as their synonyms. Not themselves synonyms of the synonyms. Can specify up to 100 terms.
  • synonyms (type: list(String.t), default: nil) - Defines a set of synonyms. Cannot contain duplicates. Can specify up to 100 synonyms.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

t()

@type t() :: %GoogleApi.Retail.V2.Model.GoogleCloudRetailV2RuleOnewaySynonymsAction{
  onewayTerms: [String.t()] | nil,
  queryTerms: [String.t()] | nil,
  synonyms: [String.t()] | nil
}

Functions

decode(value, options)

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.