From 61034f5c866cf8786e7c7a96b3c18c64ddc4054c Mon Sep 17 00:00:00 2001 From: kimchy Date: Mon, 21 Mar 2011 18:10:13 +0200 Subject: [PATCH] Mapping: Failure to update _source mapping - compress and compress_threshold, closes #800. --- .../index/mapper/xcontent/XContentDocumentMapper.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/XContentDocumentMapper.java b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/XContentDocumentMapper.java index d5efd6f797f..46fa78b38a0 100644 --- a/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/XContentDocumentMapper.java +++ b/modules/elasticsearch/src/main/java/org/elasticsearch/index/mapper/xcontent/XContentDocumentMapper.java @@ -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();