#25851: Fix ParentFieldMapper.toXContent to print eager_global_ordinals only when it is set to false
This commit is contained in:
parent
d73e17c103
commit
2f8f440e80
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue