View Source GoogleApi.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec (google_api_discovery_engine v0.7.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.DiscoveryEngine.V1beta.Model.GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec{
    condition: String.t() | nil,
    pinUnexpandedResults: boolean() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.