#25851: Fix ParentFieldMapper.toXContent to print eager_global_ordinals only when it is set to false

This commit is contained in:
Jim Ferenczi 2017-07-24 15:03:05 +02:00
parent d73e17c103
commit 2f8f440e80
1 changed files with 1 additions and 1 deletions

View File

@ -289,7 +289,7 @@ public class ParentFieldMapper extends MetadataFieldMapper {
builder.startObject(CONTENT_TYPE);
builder.field("type", parentType);
if (includeDefaults || fieldType().eagerGlobalOrdinals() != defaultFieldType.eagerGlobalOrdinals()) {
if (includeDefaults || fieldType().eagerGlobalOrdinals() == false) {
builder.field("eager_global_ordinals", fieldType().eagerGlobalOrdinals());
}
builder.endObject();