Reference documentation and code samples for the Discovery Engine v1beta API enum SearchRequest.Types.BoostSpec.Types.ConditionBoostSpec.Types.BoostControlSpec.Types.AttributeType.
The attribute(or function) for which the custom ranking is to be
applied.
For the freshness use case the attribute value will be the duration
between the current time and the date in the datetime field
specified. The value must be formatted as an XSD dayTimeDuration
value (a restricted subset of an ISO 8601 duration value). The
pattern for this is: [nD][T[nH][nM][nS]].
For example, 5D, 3DT12H30M, T24H.
Numerical
The value of the numerical field will be used to dynamically update
the boost amount. In this case, the attribute_value (the x value)
of the control point will be the actual value of the numerical
field for which the boost_amount is specified.
[[["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\u003eThis page provides documentation for the \u003ccode\u003eSearchRequest.Types.BoostSpec.Types.ConditionBoostSpec.Types.BoostControlSpec.Types.AttributeType\u003c/code\u003e enum within the Google Cloud Discovery Engine v1beta API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAttributeType\u003c/code\u003e enum defines the attribute or function used for custom ranking in search requests.\u003c/p\u003e\n"],["\u003cp\u003eThe enum offers three distinct fields: \u003ccode\u003eFreshness\u003c/code\u003e, \u003ccode\u003eNumerical\u003c/code\u003e, and \u003ccode\u003eUnspecified\u003c/code\u003e, each serving a specific purpose in the context of custom ranking.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eFreshness\u003c/code\u003e uses a duration between the current time and a specified datetime, formatted as an XSD \u003ccode\u003edayTimeDuration\u003c/code\u003e value, to determine boost.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eNumerical\u003c/code\u003e fields use their value to dynamically determine boost amounts and boost values.\u003c/p\u003e\n"]]],[],null,[]]