diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/DocumentMapperParser.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/DocumentMapperParser.java index 9eea74057d4..6404dacc5e9 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/DocumentMapperParser.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/DocumentMapperParser.java @@ -216,7 +216,7 @@ public class DocumentMapperParser extends AbstractIndexComponent { XContentParser xContentParser = null; try { xContentParser = XContentFactory.xContent(source).createParser(source); - root = xContentParser.map(); + root = xContentParser.mapOrdered(); } catch (IOException e) { throw new MapperParsingException("Failed to parse mapping definition", e); } finally {