Mapper: Using dynamic_template can result in warning of parsed and original source difference (resulting in excessive mapping parsing), closes #764.

This commit is contained in:
kimchy 2011-03-09 11:36:51 +02:00
parent f694b9dfd8
commit c2a0e0b767

View File

@ -28,6 +28,7 @@ import org.elasticsearch.index.mapper.MapperParsingException;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
import java.util.TreeMap;
/** /**
* @author kimchy (shay.banon) * @author kimchy (shay.banon)
@ -105,7 +106,7 @@ public class DynamicTemplate {
public DynamicTemplate(String name, Map<String, Object> conf, String pathMatch, String pathUnmatch, String match, String unmatch, String matchMappingType, MatchType matchType, Map<String, Object> mapping) { public DynamicTemplate(String name, Map<String, Object> conf, String pathMatch, String pathUnmatch, String match, String unmatch, String matchMappingType, MatchType matchType, Map<String, Object> mapping) {
this.name = name; this.name = name;
this.conf = conf; this.conf = new TreeMap<String, Object>(conf);
this.pathMatch = pathMatch; this.pathMatch = pathMatch;
this.pathUnmatch = pathUnmatch; this.pathUnmatch = pathUnmatch;
this.match = match; this.match = match;