View Source GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestQueryExpansionSpec (google_api_retail v0.3.0)

Specification to determine under which conditions query expansion should occur.

Attributes

  • condition (type: String.t, default: nil) - The condition under which query expansion should occur. Default to Condition.DISABLED.
  • pinUnexpandedResults (type: boolean(), default: nil) - Whether to pin unexpanded results. If this field is set to true, unexpanded products are always at the top of the search results, followed by the expanded results.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

t() ::
  %GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestQueryExpansionSpec{
    condition: String.t() | nil,
    pinUnexpandedResults: boolean() | nil
  }

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.