Reference documentation and code samples for the Discovery Engine v1 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"]],[["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-03-21 UTC."],[[["This documentation page covers the `AttributeType` enum within the `Google.Cloud.DiscoveryEngine.V1` namespace, specifically for version 1.5.0, and details different versions of the content are also provided for previous versions and the latest version."],["The `AttributeType` enum is used to specify the attribute or function for applying custom ranking in the context of `SearchRequest.Types.BoostSpec.Types.ConditionBoostSpec.Types.BoostControlSpec.Types`."],["The enum has three fields: `Freshness`, for datetime-based ranking adjustments with a specific duration format; `Numerical`, for dynamically updating boost amounts based on numerical field values; and `Unspecified`, for representing an unspecified attribute type."],["The document provides reference information, links to different version history, as well as documentation for the enum's fields, name, and description."]]],[]]