From 021aa09614ea4e309cbe2d4b5ec506251d903233 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Thu, 7 Nov 2013 01:06:57 +0100 Subject: [PATCH] External method to set rootTypeParsers in DocumentMapperParser incorrect fixes #4113 --- .../org/elasticsearch/index/mapper/DocumentMapperParser.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/elasticsearch/index/mapper/DocumentMapperParser.java b/src/main/java/org/elasticsearch/index/mapper/DocumentMapperParser.java index da37b5de4e2..920e8d3567c 100644 --- a/src/main/java/org/elasticsearch/index/mapper/DocumentMapperParser.java +++ b/src/main/java/org/elasticsearch/index/mapper/DocumentMapperParser.java @@ -134,8 +134,7 @@ public class DocumentMapperParser extends AbstractIndexComponent { public void putRootTypeParser(String type, Mapper.TypeParser typeParser) { synchronized (typeParsersMutex) { - rootTypeParsers = new MapBuilder() - .putAll(typeParsers) + rootTypeParsers = new MapBuilder(rootTypeParsers) .put(type, typeParser) .immutableMap(); }