View Source GoogleApi.Retail.V2.Model.GoogleCloudRetailV2SearchRequestQueryExpansionSpec (google_api_retail v0.10.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.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

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

Functions

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

Unwrap a decoded JSON object into its complex fields.