mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-26 06:46:10 +00:00
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:
parent
f694b9dfd8
commit
c2a0e0b767
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user