Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class BoostSpec.
Specification to boost suggestions based on the condition of the suggestion.
Generated from protobuf message google.cloud.discoveryengine.v1.AdvancedCompleteQueryRequest.BoostSpec
Namespace
Google \ Cloud \ DiscoveryEngine \ V1 \ AdvancedCompleteQueryRequestMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ condition_boost_specs |
array<BoostSpec\ConditionBoostSpec>
Condition boost specifications. If a suggestion matches multiple conditions in the specifications, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20. Note: Currently only support language condition boost. |
getConditionBoostSpecs
Condition boost specifications. If a suggestion matches multiple conditions in the specifications, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
Note: Currently only support language condition boost.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<BoostSpec\ConditionBoostSpec> |
|
setConditionBoostSpecs
Condition boost specifications. If a suggestion matches multiple conditions in the specifications, boost values from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
Note: Currently only support language condition boost.
| Parameter | |
|---|---|
| Name | Description |
var |
array<BoostSpec\ConditionBoostSpec>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|