View Source GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Rule (google_api_retail v0.10.0)

A rule is a condition-action pair A condition defines when a rule is to be triggered. An action specifies what occurs on that trigger. Currently rules only work for controls with SOLUTION_TYPE_SEARCH.

Attributes

  • boostAction (type: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2RuleBoostAction.t, default: nil) - A boost action.
  • condition (type: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Condition.t, default: nil) - Required. The condition that triggers the rule. If the condition is empty, the rule will always apply.
  • doNotAssociateAction (type: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2RuleDoNotAssociateAction.t, default: nil) - Prevents term from being associated with other terms.
  • filterAction (type: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2RuleFilterAction.t, default: nil) - Filters results.
  • forceReturnFacetAction (type: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2RuleForceReturnFacetAction.t, default: nil) - Force returns an attribute as a facet in the request.
  • ignoreAction (type: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2RuleIgnoreAction.t, default: nil) - Ignores specific terms from query during search.
  • onewaySynonymsAction (type: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2RuleOnewaySynonymsAction.t, default: nil) - Treats specific term as a synonym with a group of terms. Group of terms will not be treated as synonyms with the specific term.
  • redirectAction (type: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2RuleRedirectAction.t, default: nil) - Redirects a shopper to a specific page.
  • removeFacetAction (type: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2RuleRemoveFacetAction.t, default: nil) - Remove an attribute as a facet in the request (if present).
  • replacementAction (type: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2RuleReplacementAction.t, default: nil) - Replaces specific terms in the query.
  • twowaySynonymsAction (type: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2RuleTwowaySynonymsAction.t, default: nil) - Treats a set of terms as synonyms of one another.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

Functions

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

Unwrap a decoded JSON object into its complex fields.