Skip to content

Commit

Permalink
Throw a parsing exception when boost is set in span_or query,
Browse files Browse the repository at this point in the history
  • Loading branch information
codebrain committed Mar 13, 2019
1 parent 698d632 commit 0075d98
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Nest/QueryDsl/Abstractions/Query/QueryBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public interface IQuery
/// Provides a boost to this query to influence its relevance score.
/// 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.
/// Setting a boost with a span_or query will throw a parsing exception on the server.
/// </summary>
[JsonProperty("boost")]
double? Boost { get; set; }
Expand Down

0 comments on commit 0075d98

Please sign in to comment.