Incorrect application of boost in SpanNotQueryBuilder, closes #2192.

This commit is contained in:
Shay Banon 2012-08-21 13:08:23 +02:00
parent a80639abf5
commit a8656c8a6f
1 changed files with 1 additions and 1 deletions

View File

@ -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();