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

Possible options for the facet that corresponds to the current attribute config.

Attributes

  • facetIntervals (type: list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2Interval.t), default: nil) - If you don't set the facet SearchRequest.FacetSpec.FacetKey.intervals in the request to a numerical attribute, then we use the computed intervals with rounded bounds obtained from all its product numerical attribute values. The computed intervals might not be ideal for some attributes. Therefore, we give you the option to overwrite them with the facet_intervals field. The maximum of facet intervals per CatalogAttribute is 40. Each interval must have a lower bound or an upper bound. If both bounds are provided, then the lower bound must be smaller or equal than the upper bound.
  • ignoredFacetValues (type: list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CatalogAttributeFacetConfigIgnoredFacetValues.t), default: nil) - Each instance represents a list of attribute values to ignore as facet values for a specific time range. The maximum number of instances per CatalogAttribute is 25.
  • mergedFacet (type: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacet.t, default: nil) - Use this field only if you want to merge a facet key into another facet key.
  • mergedFacetValues (type: list(GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CatalogAttributeFacetConfigMergedFacetValue.t), default: nil) - Each instance replaces a list of facet values by a merged facet value. If a facet value is not in any list, then it will stay the same. To avoid conflicts, only paths of length 1 are accepted. In other words, if "dark_blue" merged into "BLUE", then the latter can't merge into "blues" because this would create a path of length 2. The maximum number of instances of MergedFacetValue per CatalogAttribute is 100. This feature is available only for textual custom attributes.
  • rerankConfig (type: GoogleApi.Retail.V2.Model.GoogleCloudRetailV2CatalogAttributeFacetConfigRerankConfig.t, default: nil) - Set this field only if you want to rerank based on facet values engaged by the user for the current key. This option is only possible for custom facetable textual keys.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

Functions

decode(value, options)

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

Unwrap a decoded JSON object into its complex fields.