Skip to content

Commit

Permalink
Throw a parsing exception when boost is set in span_or query, (#3596)
Browse files Browse the repository at this point in the history
Relates to elastic/elasticsearch#28390 and elastic/elasticsearch#34112

(cherry picked from commit c4d9a44)
  • Loading branch information
Stuart Cam authored and russcam committed Apr 2, 2019
1 parent c06bb8b commit 8384097
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Nest/QueryDsl/Abstractions/Query/QueryBase.cs
Expand Up @@ -10,6 +10,9 @@ public interface IQuery
/// For example, a query with a boost of 2 is twice as important as a query with a boost of 1,
/// although the actual boost value that is applied undergoes normalization and internal optimization.
/// </summary>
/// <remarks>
/// Setting a boost for an <see cref="ISpanOrQuery"/> query will throw a parsing exception on the server.
/// </remarks>
[DataMember(Name = "boost")]
double? Boost { get; set; }

Expand Down

0 comments on commit 8384097

Please sign in to comment.