Skip to content

Commit a8656c8

Browse files
committed
Incorrect application of boost in SpanNotQueryBuilder, closes elastic#2192.
1 parent a80639a commit a8656c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/elasticsearch/index/query/SpanNotQueryBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ protected void doXContent(XContentBuilder builder, Params params) throws IOExcep
6262
include.toXContent(builder, params);
6363
builder.field("exclude");
6464
exclude.toXContent(builder, params);
65-
if (boost == -1) {
65+
if (boost != -1) {
6666
builder.field("boost", boost);
6767
}
6868
builder.endObject();

0 commit comments

Comments
 (0)