Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfig
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfig
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/representations.rb
Overview
Possible options for the facet that corresponds to the current attribute config.
Instance Attribute Summary collapse
-
#facet_intervals ⇒ Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaInterval>
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.
-
#ignored_facet_values ⇒ Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigIgnoredFacetValues>
Each instance represents a list of attribute values to ignore as facet values for a specific time range.
-
#merged_facet ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacet
The current facet key (i.e. attribute config) maps into the merged_facet_key.
-
#merged_facet_values ⇒ Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacetValue>
Each instance replaces a list of facet values by a merged facet value.
-
#rerank_config ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigRerankConfig
Options to rerank based on facet values engaged by the user for the current key.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2betaCatalogAttributeFacetConfig
constructor
A new instance of GoogleCloudRetailV2betaCatalogAttributeFacetConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2betaCatalogAttributeFacetConfig
Returns a new instance of GoogleCloudRetailV2betaCatalogAttributeFacetConfig.
3067 3068 3069 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3067 def initialize(**args) update!(**args) end |
Instance Attribute Details
#facet_intervals ⇒ Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaInterval>
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.
Corresponds to the JSON property facetIntervals
3027 3028 3029 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3027 def facet_intervals @facet_intervals end |
#ignored_facet_values ⇒ Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigIgnoredFacetValues>
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.
Corresponds to the JSON property ignoredFacetValues
3034 3035 3036 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3034 def ignored_facet_values @ignored_facet_values end |
#merged_facet ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacet
The current facet key (i.e. attribute config) maps into the merged_facet_key.
A facet key can have at most one child. The current facet key and the merged
facet key need both to be textual custom attributes or both numerical custom
attributes (same type).
Corresponds to the JSON property mergedFacet
3042 3043 3044 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3042 def merged_facet @merged_facet end |
#merged_facet_values ⇒ Array<Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigMergedFacetValue>
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.
Corresponds to the JSON property mergedFacetValues
3053 3054 3055 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3053 def merged_facet_values @merged_facet_values end |
#rerank_config ⇒ Google::Apis::RetailV2beta::GoogleCloudRetailV2betaCatalogAttributeFacetConfigRerankConfig
Options to rerank based on facet values engaged by the user for the current
key. That key needs to be a custom textual key and facetable. To use this
control, you also need to pass all the facet keys engaged by the user in the
request using the field [SearchRequest.FacetSpec]. In particular, if you don't
pass the facet keys engaged that you want to rerank on, this control won't be
effective. Moreover, to obtain better results, the facet values that you want
to rerank on should be close to English (ideally made of words, underscores,
and spaces).
Corresponds to the JSON property rerankConfig
3065 3066 3067 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3065 def rerank_config @rerank_config end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3072 3073 3074 3075 3076 3077 3078 |
# File 'lib/google/apis/retail_v2beta/classes.rb', line 3072 def update!(**args) @facet_intervals = args[:facet_intervals] if args.key?(:facet_intervals) @ignored_facet_values = args[:ignored_facet_values] if args.key?(:ignored_facet_values) @merged_facet = args[:merged_facet] if args.key?(:merged_facet) @merged_facet_values = args[:merged_facet_values] if args.key?(:merged_facet_values) @rerank_config = args[:rerank_config] if args.key?(:rerank_config) end |