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

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
NameDescription
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
TypeDescription
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
NameDescription
var array<Google\Cloud\DiscoveryEngine\V1\SearchRequest\BoostSpec\ConditionBoostSpec>
Returns
TypeDescription
$this