Condition boost specifications. If a product matches multiple conditions in the specifications, boost scores from these specifications are all applied and combined in a non-linear way. Maximum number of specifications is 20.
Condition boost specifications. If a product matches multiple conditions
in the specifications, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
Condition boost specifications. If a product matches multiple conditions
in the specifications, boost scores from these specifications are all
applied and combined in a non-linear way. Maximum number of
specifications is 20.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Google Cloud Retail V2 Client - Class BoostSpec (2.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.3.1 (latest)](/php/docs/reference/cloud-retail/latest/V2.SearchRequest.BoostSpec)\n- [2.3.0](/php/docs/reference/cloud-retail/2.3.0/V2.SearchRequest.BoostSpec)\n- [2.2.1](/php/docs/reference/cloud-retail/2.2.1/V2.SearchRequest.BoostSpec)\n- [2.1.3](/php/docs/reference/cloud-retail/2.1.3/V2.SearchRequest.BoostSpec)\n- [2.0.0](/php/docs/reference/cloud-retail/2.0.0/V2.SearchRequest.BoostSpec)\n- [1.7.0](/php/docs/reference/cloud-retail/1.7.0/V2.SearchRequest.BoostSpec)\n- [1.6.4](/php/docs/reference/cloud-retail/1.6.4/V2.SearchRequest.BoostSpec)\n- [1.5.0](/php/docs/reference/cloud-retail/1.5.0/V2.SearchRequest.BoostSpec)\n- [1.4.2](/php/docs/reference/cloud-retail/1.4.2/V2.SearchRequest.BoostSpec)\n- [1.3.1](/php/docs/reference/cloud-retail/1.3.1/V2.SearchRequest.BoostSpec)\n- [1.2.1](/php/docs/reference/cloud-retail/1.2.1/V2.SearchRequest.BoostSpec)\n- [1.1.1](/php/docs/reference/cloud-retail/1.1.1/V2.SearchRequest.BoostSpec)\n- [1.0.1](/php/docs/reference/cloud-retail/1.0.1/V2.SearchRequest.BoostSpec) \nReference documentation and code samples for the Google Cloud Retail V2 Client class BoostSpec.\n\nBoost specification to boost certain items.\n\nGenerated from protobuf message `google.cloud.retail.v2.SearchRequest.BoostSpec`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Retail \\\\ V2 \\\\ SearchRequest\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getConditionBoostSpecs\n\nCondition boost specifications. If a product matches multiple conditions\nin the specifications, boost scores from these specifications are all\napplied and combined in a non-linear way. Maximum number of\nspecifications is 20.\n\n### setConditionBoostSpecs\n\nCondition boost specifications. If a product matches multiple conditions\nin the specifications, boost scores from these specifications are all\napplied and combined in a non-linear way. Maximum number of\nspecifications is 20.\n\n### getSkipBoostSpecValidation\n\nWhether to skip boostspec validation. If this field is set to true,\ninvalid\n[BoostSpec.condition_boost_specs](/php/docs/reference/cloud-retail/latest/V2.SearchRequest.BoostSpec#_Google_Cloud_Retail_V2_SearchRequest_BoostSpec__getConditionBoostSpecs__)\nwill be ignored and valid\n[BoostSpec.condition_boost_specs](/php/docs/reference/cloud-retail/latest/V2.SearchRequest.BoostSpec#_Google_Cloud_Retail_V2_SearchRequest_BoostSpec__getConditionBoostSpecs__)\nwill still be applied.\n\n### hasSkipBoostSpecValidation\n\n### clearSkipBoostSpecValidation\n\n### setSkipBoostSpecValidation\n\nWhether to skip boostspec validation. If this field is set to true,\ninvalid\n[BoostSpec.condition_boost_specs](/php/docs/reference/cloud-retail/latest/V2.SearchRequest.BoostSpec#_Google_Cloud_Retail_V2_SearchRequest_BoostSpec__getConditionBoostSpecs__)\nwill be ignored and valid\n[BoostSpec.condition_boost_specs](/php/docs/reference/cloud-retail/latest/V2.SearchRequest.BoostSpec#_Google_Cloud_Retail_V2_SearchRequest_BoostSpec__getConditionBoostSpecs__)\nwill still be applied."]]