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.
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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version available for \u003ccode\u003eSearchRequest.Types.BoostSpec\u003c/code\u003e is 2.12.0, with versions ranging down to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSearchRequest.Types.BoostSpec\u003c/code\u003e is a class within the Retail v2 API, designed to manage the boosting of specific items in search results, and it implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class allows for multiple \u003ccode\u003eConditionBoostSpecs\u003c/code\u003e to be set, with a maximum limit of 20, enabling complex boosting strategies based on various product conditions, and if multiple conditions are met the boost scores are combined in a non-linear fashion.\u003c/p\u003e\n"],["\u003cp\u003eA \u003ccode\u003eSkipBoostSpecValidation\u003c/code\u003e property is provided to allow invalid boost specifications to be ignored, ensuring that valid specifications are applied despite the presence of errors, and it has a respective getter called \u003ccode\u003eHasSkipBoostSpecValidation\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class features a constructor, \u003ccode\u003eBoostSpec()\u003c/code\u003e, that can be utilized for its creation, as well as \u003ccode\u003eBoostSpec(BoostSpec)\u003c/code\u003e to create an instance from another \u003ccode\u003eBoostSpec\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]