Google Cloud Discovery Engine V1 Client - Class BoostSpec (1.1.0)

Reference documentation and code samples for the Google Cloud Discovery Engine V1 Client class BoostSpec.

Boost specification to boost certain documents.

Generated from protobuf message google.cloud.discoveryengine.v1.SearchRequest.BoostSpec

Namespace

Google \ Cloud \ DiscoveryEngine \ V1 \ SearchRequest

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ condition_boost_specs array<Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec\ConditionBoostSpec>

Condition boost specifications. If a document 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.

getConditionBoostSpecs

Condition boost specifications. If a document 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.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setConditionBoostSpecs

Condition boost specifications. If a document 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.

Parameter
Name Description
var array<Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec\ConditionBoostSpec>
Returns
Type Description
$this