Incorrect application of boost in SpanNotQueryBuilder, closes #2192.
This commit is contained in:
parent
a80639abf5
commit
a8656c8a6f
|
@ -62,7 +62,7 @@ public class SpanNotQueryBuilder extends BaseQueryBuilder implements SpanQueryBu
|
|||
include.toXContent(builder, params);
|
||||
builder.field("exclude");
|
||||
exclude.toXContent(builder, params);
|
||||
if (boost == -1) {
|
||||
if (boost != -1) {
|
||||
builder.field("boost", boost);
|
||||
}
|
||||
builder.endObject();
|
||||
|
|
Loading…
Reference in New Issue