mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-24 17:09:48 +00:00
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…
x
Reference in New Issue
Block a user