Retail v2 API - Class SearchRequest.Types.BoostSpec (2.8.0)

public sealed class SearchRequest.Types.BoostSpec : IMessage<SearchRequest.Types.BoostSpec>, IEquatable<SearchRequest.Types.BoostSpec>, IDeepCloneable<SearchRequest.Types.BoostSpec>, IBufferMessage, IMessage

Reference documentation and code samples for the Retail v2 API class SearchRequest.Types.BoostSpec.

Boost specification to boost certain items.

Inheritance

object > SearchRequest.Types.BoostSpec

Namespace

Google.Cloud.Retail.V2

Assembly

Google.Cloud.Retail.V2.dll

Constructors

BoostSpec()

public BoostSpec()

BoostSpec(BoostSpec)

public BoostSpec(SearchRequest.Types.BoostSpec other)
Parameter
Name Description
other SearchRequestTypesBoostSpec

Properties

ConditionBoostSpecs

public RepeatedField<SearchRequest.Types.BoostSpec.Types.ConditionBoostSpec> ConditionBoostSpecs { get; }

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

Property Value
Type Description
RepeatedFieldSearchRequestTypesBoostSpecTypesConditionBoostSpec

HasSkipBoostSpecValidation

public bool HasSkipBoostSpecValidation { get; }

Gets whether the "skip_boost_spec_validation" field is set

Property Value
Type Description
bool

SkipBoostSpecValidation

public bool SkipBoostSpecValidation { get; set; }

Whether to skip boostspec validation. If this field is set to true, invalid [BoostSpec.condition_boost_specs][google.cloud.retail.v2.SearchRequest.BoostSpec.condition_boost_specs] will be ignored and valid [BoostSpec.condition_boost_specs][google.cloud.retail.v2.SearchRequest.BoostSpec.condition_boost_specs] will still be applied.

Property Value
Type Description
bool