public sealed class BoostSpec.Types.ConditionBoostSpec : IMessage<BoostSpec.Types.ConditionBoostSpec>, IEquatable<BoostSpec.Types.ConditionBoostSpec>, IDeepCloneable<BoostSpec.Types.ConditionBoostSpec>, IBufferMessage, IMessage
Reference documentation and code samples for the Dialogflow v3 API class BoostSpec.Types.ConditionBoostSpec.
Boost applies to documents which match a condition.
Optional. Strength of the condition boost, which should be in [-1, 1].
Negative boost means demotion. Default is 0.0.
Setting to 1.0 gives the document a big promotion. However, it does not
necessarily mean that the boosted document will be the top result at
all times, nor that other documents will be excluded. Results could
still be shown even when none of them matches the condition. And
results that are significantly more relevant to the search query can
still trump your heavily favored but irrelevant documents.
Setting to -1.0 gives the document a big demotion. However, results
that are deeply relevant might still be shown. The document will have
an upstream battle to get a fairly high ranking, but it is not blocked
out completely.
Setting to 0.0 means no boost applied. The boosting condition is
ignored.
[[["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 documentation for the \u003ccode\u003eBoostSpec.Types.ConditionBoostSpec\u003c/code\u003e class within the Dialogflow v3 API, specifically for version 2.15.0, as well as the other versions of this same documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConditionBoostSpec\u003c/code\u003e class allows for the application of boosts to documents based on specific conditions, with a boost value ranging from -1.0 to 1.0, where negative values indicate demotion and positive values promotion, and 0 meaning no boost.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for comparison, deep cloning, and protocol buffer message functionality.\u003c/p\u003e\n"],["\u003cp\u003eThis class provides two constructors, \u003ccode\u003eConditionBoostSpec()\u003c/code\u003e for creating a new instance, and \u003ccode\u003eConditionBoostSpec(ConditionBoostSpec)\u003c/code\u003e to make a copy of another \u003ccode\u003eConditionBoostSpec\u003c/code\u003e instance, in addition to two properties, \u003ccode\u003eBoost\u003c/code\u003e, and \u003ccode\u003eCondition\u003c/code\u003e, to set the amount of boost and to filter the conditions, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe webpage contains links to the documentation for the same class across multiple versions, ranging from 1.0.0 all the way up to 2.23.0, in order to support users on different versions.\u003c/p\u003e\n"]]],[],null,[]]