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
  • Loading branch information
Stuart Cam authored and russcam committed Mar 18, 2019
1 parent 0d634cb commit 021e0db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Nest/QueryDsl/Abstractions/Query/QueryBase.cs
Original file line number Diff line number Diff line change
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>
[JsonProperty("boost")]
double? Boost { get; set; }

Expand Down

0 comments on commit 021e0db

Please sign in to comment.