Mapping: Failure to update _source mapping - compress and compress_threshold, closes #800.

This commit is contained in:
kimchy 2011-03-21 18:10:13 +02:00
parent 8f8fb89c4e
commit 61034f5c86
1 changed files with 5 additions and 0 deletions

View File

@ -505,6 +505,11 @@ public class XContentDocumentMapper implements DocumentMapper, ToXContent {
XContentDocumentMapper xContentMergeWith = (XContentDocumentMapper) mergeWith;
MergeContext mergeContext = new MergeContext(this, mergeFlags);
rootObjectMapper.merge(xContentMergeWith.rootObjectMapper, mergeContext);
allFieldMapper.merge(xContentMergeWith.allFieldMapper, mergeContext);
analyzerMapper.merge(xContentMergeWith.analyzerMapper, mergeContext);
sourceFieldMapper.merge(xContentMergeWith.sourceFieldMapper, mergeContext);
if (!mergeFlags.simulate()) {
// let the merge with attributes to override the attributes
meta = mergeWith.meta();