Google Cloud Dialogflow v2 API - Enum SearchKnowledgeRequest.Types.SearchConfig.Types.BoostSpecs.Types.BoostSpec.Types.ConditionBoostSpec.Types.BoostControlSpec.Types.AttributeType (4.24.0)
Reference documentation and code samples for the Google Cloud Dialogflow v2 API enum SearchKnowledgeRequest.Types.SearchConfig.Types.BoostSpecs.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]]. E.g. 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 webpage provides reference documentation for the \u003ccode\u003eAttributeType\u003c/code\u003e enum within the Google Cloud Dialogflow v2 API.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAttributeType\u003c/code\u003e enum defines the attributes used for custom ranking in search, particularly within \u003ccode\u003eSearchKnowledgeRequest\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe available \u003ccode\u003eAttributeType\u003c/code\u003e fields include \u003ccode\u003eFreshness\u003c/code\u003e, which calculates the time duration between the current date and a specified date field, and \u003ccode\u003eNumerical\u003c/code\u003e, which dynamically updates the boost amount based on the value of a number.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation also contains an \u003ccode\u003eUnspecified\u003c/code\u003e field to describe an undefined \u003ccode\u003eAttributeType\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe page lists different versions of the API documentation, from version 3.2.0 to 4.26.0(latest).\u003c/p\u003e\n"]]],[],null,[]]