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