Reference documentation and code samples for the Google Cloud Retail V2 Client class BoostSpec.
Boost specification to boost certain items.
Generated from protobuf message google.cloud.retail.v2.SearchRequest.BoostSpec
Namespace
Google \ Cloud \ Retail \ V2 \ SearchRequestMethods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ condition_boost_specs
array< BoostSpec\ConditionBoostSpec
>
Condition boost specifications. If a product matches multiple conditions in the specifications, 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.
getConditionBoostSpecs
Condition boost specifications. If a product matches multiple conditions in the specifications, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
setConditionBoostSpecs
Condition boost specifications. If a product matches multiple conditions in the specifications, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
$this
getSkipBoostSpecValidation
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.
bool
hasSkipBoostSpecValidation
clearSkipBoostSpecValidation
setSkipBoostSpecValidation
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.
var
bool
$this