Dialogflow V2 API - Module Google::Cloud::Dialogflow::V2::SearchKnowledgeRequest::SearchConfig::BoostSpecs::BoostSpec::ConditionBoostSpec::BoostControlSpec::AttributeType (v1.12.0)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Dialogflow V2 API module Google::Cloud::Dialogflow::V2::SearchKnowledgeRequest::SearchConfig::BoostSpecs::BoostSpec::ConditionBoostSpec::BoostControlSpec::AttributeType.
The attribute(or function) for which the custom ranking is to be
applied.
Constants
ATTRIBUTE_TYPE_UNSPECIFIED
value: 0
Unspecified AttributeType.
NUMERICAL
value: 1
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.
FRESHNESS
value: 2
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
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-10 UTC.
[[["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-10-10 UTC."],[],[]]