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\u003eThe provided content details the \u003ccode\u003eConditionBoostSpec\u003c/code\u003e class within the Google Cloud Dialogflow CX v3 API, which is used to apply boosts to documents based on specified conditions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConditionBoostSpec\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.Dialogflow.Cx.V3\u003c/code\u003e namespace and is implemented within the \u003ccode\u003eGoogle.Cloud.Dialogflow.Cx.V3.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eConditionBoostSpec\u003c/code\u003e has properties like \u003ccode\u003eBoost\u003c/code\u003e, \u003ccode\u003eBoostControlSpec\u003c/code\u003e, and \u003ccode\u003eCondition\u003c/code\u003e, which allow for setting the strength of the boost, defining custom ranking specifications, and specifying the boost conditions, respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes a comprehensive list of versions for \u003ccode\u003eConditionBoostSpec\u003c/code\u003e, ranging from version 2.23.0 down to version 1.0.0, all containing the same class.\u003c/p\u003e\n"]]],[],null,["# Dialogflow v3 API - Class BoostSpec.Types.ConditionBoostSpec (2.24.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.24.0 (latest)](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.23.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.23.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.22.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.22.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.21.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.21.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.20.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.20.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.19.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.19.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.18.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.18.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.17.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.17.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.16.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.15.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.14.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.13.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.12.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.11.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.10.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.9.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.8.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.7.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.6.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.5.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.4.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.3.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.2.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.1.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.0.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [1.13.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.13.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [1.12.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.12.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [1.11.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.11.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [1.10.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.10.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [1.9.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.9.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.8.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.7.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.6.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.5.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.4.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.3.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.2.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.1.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.0.0/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec) \n\n public sealed class BoostSpec.Types.ConditionBoostSpec : IMessage\u003cBoostSpec.Types.ConditionBoostSpec\u003e, IEquatable\u003cBoostSpec.Types.ConditionBoostSpec\u003e, IDeepCloneable\u003cBoostSpec.Types.ConditionBoostSpec\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Dialogflow v3 API class BoostSpec.Types.ConditionBoostSpec.\n\nBoost applies to documents which match a condition. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e BoostSpec.Types.ConditionBoostSpec \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[BoostSpec](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.BoostSpec)[Types](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types)[ConditionBoostSpec](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[BoostSpec](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.BoostSpec)[Types](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types)[ConditionBoostSpec](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[BoostSpec](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.BoostSpec)[Types](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types)[ConditionBoostSpec](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.BoostSpec.Types.ConditionBoostSpec), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Dialogflow.Cx.V3](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3)\n\nAssembly\n--------\n\nGoogle.Cloud.Dialogflow.Cx.V3.dll\n\nConstructors\n------------\n\n### ConditionBoostSpec()\n\n public ConditionBoostSpec()\n\n### ConditionBoostSpec(ConditionBoostSpec)\n\n public ConditionBoostSpec(BoostSpec.Types.ConditionBoostSpec other)\n\nProperties\n----------\n\n### Boost\n\n public float Boost { get; set; }\n\nOptional. Strength of the condition boost, which should be in \\[-1, 1\\].\nNegative boost means demotion. Default is 0.0.\n\nSetting to 1.0 gives the document a big promotion. However, it does not\nnecessarily mean that the boosted document will be the top result at\nall times, nor that other documents will be excluded. Results could\nstill be shown even when none of them matches the condition. And\nresults that are significantly more relevant to the search query can\nstill trump your heavily favored but irrelevant documents.\n\nSetting to -1.0 gives the document a big demotion. However, results\nthat are deeply relevant might still be shown. The document will have\nan upstream battle to get a fairly high ranking, but it is not blocked\nout completely.\n\nSetting to 0.0 means no boost applied. The boosting condition is\nignored.\n\n### BoostControlSpec\n\n public BoostSpec.Types.ConditionBoostSpec.Types.BoostControlSpec BoostControlSpec { get; set; }\n\nOptional. Complex specification for custom ranking based on customer\ndefined attribute value.\n\n### Condition\n\n public string Condition { get; set; }\n\nOptional. An expression which specifies a boost condition. The syntax and\nsupported fields are the same as a filter expression.\nExamples:\n\n- To boost documents with document ID \"doc_1\" or \"doc_2\", and color \"Red\" or \"Blue\":\n - (id: ANY(\"doc_1\", \"doc_2\")) AND (color: ANY(\"Red\",\"Blue\"))"]]