Skip to content

Commit c4d9a44

Browse files
Stuart Camrusscam
Stuart Cam
authored andcommitted
Throw a parsing exception when boost is set in span_or query, (#3596)
Relates to elastic/elasticsearch#28390 and elastic/elasticsearch#34112
1 parent 8b31b27 commit c4d9a44

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Nest/QueryDsl/Abstractions/Query/QueryBase.cs

+3
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ public interface IQuery
1010
/// For example, a query with a boost of 2 is twice as important as a query with a boost of 1,
1111
/// although the actual boost value that is applied undergoes normalization and internal optimization.
1212
/// </summary>
13+
/// <remarks>
14+
/// Setting a boost for an <see cref="ISpanOrQuery"/> query will throw a parsing exception on the server.
15+
/// </remarks>
1316
[JsonProperty("boost")]
1417
double? Boost { get; set; }
1518

0 commit comments

Comments
 (0)