Class BoostSpec (1.10.1)

BoostSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Boost specification to boost certain items.

Attributes

NameDescription
condition_boost_specs Sequence[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``.

Inheritance

builtins.object > proto.message.Message > BoostSpec

Classes

ConditionBoostSpec

ConditionBoostSpec(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Boost applies to products which match a condition.