Google Cloud Discovery Engine V1beta Client - Class BoostSpec (0.4.0)

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

Boost specification to boost certain documents.

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

Namespace

Google \ Cloud \ DiscoveryEngine \ V1beta \ SearchRequest

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ condition_boost_specs array<Google\Cloud\DiscoveryEngine\V1beta\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\V1beta\SearchRequest\BoostSpec\ConditionBoostSpec>
Returns
TypeDescription
$this