BoostSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Boost specification to boost certain items.
Attributes | |
---|---|
Name | Description |
condition_boost_specs |
MutableSequence[google.cloud.retail_v2beta.types.SearchRequest.BoostSpec.ConditionBoostSpec]
Condition boost specifications. If a product matches multiple conditions in the specifictions, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20. |
skip_boost_spec_validation |
bool
Whether to skip boostspec validation. If this field is set to true, invalid BoostSpec.condition_boost_specs will be ignored and valid BoostSpec.condition_boost_specs will still be applied. This field is a member of oneof _ _skip_boost_spec_validation .
|
Classes
ConditionBoostSpec
ConditionBoostSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)
Boost applies to products which match a condition.