# Strange warning when putting mappings

**URL:** <https://discuss.elastic.co/t/strange-warning-when-putting-mappings/4059>\
**Category:** Elasticsearch\
**Created:** [March 8, 2011, 3:15pm UTC](https://discuss.elastic.co/t/strange-warning-when-putting-mappings/4059 "2011-03-08T15:15:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Fiedler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jan_fiedler/32/2518_2.png) [@Jan\_Fiedler](https://discuss.elastic.co/u/Jan_Fiedler)\
**Post date:** [March 8, 2011, 3:15pm UTC](https://discuss.elastic.co/t/strange-warning-when-putting-mappings/4059/1 "2011-03-08T15:15:57Z")

</div>

I am seeing strange warnings (see below) when putting mappings  
containing 'dynamic\_templates'. The mapping seems perfectly right and  
if you closely look at the warning below you find that only the order  
of the 'match' and 'match\_mapping\_type' is different. Content wise the  
mappings are the same. Is this a bug in Elastic Search? Is there  
anything I can do on my end to avoid the warning (as it is badly  
spamming my log files)?

2011-03-08 16:00:34,006 WARN  
[elasticsearch[Fagin]clusterService#updateTask-pool-11-thread-1]  
[org.elasticsearch.indices.cluster] [] - [Fagin] [test\_index] parsed  
mapping [test\_type], and got different sources  
original:  
{"test\_type":{"dynamic\_templates":[{"template1":{"mapping":  
{"index":"not\_analyzed","type":"string"},"match\_mapping\_type":"string","match":"_"}}],"properties":  
{}}}  
parsed:  
{"test\_type":{"dynamic\_templates":[{"template1":{"mapping":  
{"index":"not\_analyzed","type":"string"},"match":"_","match\_mapping\_type":"string"}}],"properties":  
{}}}

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 8, 2011, 4:48pm UTC](https://discuss.elastic.co/t/strange-warning-when-putting-mappings/4059/2 "2011-03-08T16:48:52Z")

</div>

Heya,

Its not something that breaks the system, its just a warning that extra processing of mapping is done (which should not really be done). I simply need to fix it (the warning is there so if I miss something, it will bubble up through the users 🙂 ). Can you gist a recreation of this so it will be simpler for me to fix it? ([Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/help))

-shay.banon  
On Tuesday, March 8, 2011 at 5:15 PM, Jan Fiedler wrote:  
I am seeing strange warnings (see below) when putting mappings

> containing 'dynamic\_templates'. The mapping seems perfectly right and  
> if you closely look at the warning below you find that only the order  
> of the 'match' and 'match\_mapping\_type' is different. Content wise the  
> mappings are the same. Is this a bug in Elastic Search? Is there  
> anything I can do on my end to avoid the warning (as it is badly  
> spamming my log files)?
> 
> 2011-03-08 16:00:34,006 WARN  
> [elasticsearch[Fagin]clusterService#updateTask-pool-11-thread-1]  
> [org.elasticsearch.indices.cluster] - [Fagin] [test\_index] parsed  
> mapping [test\_type], and got different sources  
> original:  
> {"test\_type":{"dynamic\_templates":[{"template1":{"mapping":  
> {"index":"not\_analyzed","type":"string"},"match\_mapping\_type":"string","match":"_"}}],"properties":  
> {}}}  
> parsed:  
> {"test\_type":{"dynamic\_templates":[{"template1":{"mapping":  
> {"index":"not\_analyzed","type":"string"},"match":"_","match\_mapping\_type":"string"}}],"properties":  
> {}}}

---

<div class="post-metadata">

**Author:** ![Jan\_Fiedler](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jan_fiedler/32/2518_2.png) [@Jan\_Fiedler](https://discuss.elastic.co/u/Jan_Fiedler)\
**Post date:** [March 9, 2011, 9:22am UTC](https://discuss.elastic.co/t/strange-warning-when-putting-mappings/4059/3 "2011-03-09T09:22:56Z")

</div>

Created curl based recreation here: [Curl based recreation of a strange Elastic Search warning when putting a perfectly valid mapping · GitHub](https://gist.github.com/861923)  
(git://gist.github.com/861923.git)

On Mar 8, 5:48 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> Heya,
> 
> Its not something that breaks the system, its just a warning that extra processing of mapping is done (which should not really be done). I simply need to fix it (the warning is there so if I miss something, it will bubble up through the users 🙂 ). Can you gist a recreation of this so it will be simpler for me to fix it? ([Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/help))
> 
> -shay.banonOn Tuesday, March 8, 2011 at 5:15 PM, Jan Fiedler wrote:
> 
> I am seeing strange warnings (see below) when putting mappings
> 
> > containing 'dynamic\_templates'. The mapping seems perfectly right and  
> > if you closely look at the warning below you find that only the order  
> > of the 'match' and 'match\_mapping\_type' is different. Content wise the  
> > mappings are the same. Is this a bug in Elastic Search? Is there  
> > anything I can do on my end to avoid the warning (as it is badly  
> > spamming my log files)?
> 
> > 2011-03-08 16:00:34,006 WARN  
> > [elasticsearch[Fagin]clusterService#updateTask-pool-11-thread-1]  
> > [org.elasticsearch.indices.cluster] - [Fagin] [test\_index] parsed  
> > mapping [test\_type], and got different sources  
> > original:  
> > {"test\_type":{"dynamic\_templates":[{"template1":{"mapping":  
> > {"index":"not\_analyzed","type":"string"},"match\_mapping\_type":"string","mat ch":"_"}}],"properties":  
> > {}}}  
> > parsed:  
> > {"test\_type":{"dynamic\_templates":[{"template1":{"mapping":  
> > {"index":"not\_analyzed","type":"string"},"match":"_","match\_mapping\_type":" string"}}],"properties":  
> > {}}}

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [March 9, 2011, 9:37am UTC](https://discuss.elastic.co/t/strange-warning-when-putting-mappings/4059/4 "2011-03-09T09:37:59Z")

</div>

Thanks!, pushed a fix: [Mapper: Using `dynamic_template` can result in warning of parsed and original source difference (resulting in excessive mapping parsing) · Issue #764 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/764#issue/764).  
On Wednesday, March 9, 2011 at 11:22 AM, Jan Fiedler wrote:

> Created curl based recreation here: [Curl based recreation of a strange Elastic Search warning when putting a perfectly valid mapping · GitHub](https://gist.github.com/861923)  
> (git://gist.github.com/861923.git)
> 
> On Mar 8, 5:48 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > Heya,
> > 
> > Its not something that breaks the system, its just a warning that extra processing of mapping is done (which should not really be done). I simply need to fix it (the warning is there so if I miss something, it will bubble up through the users 🙂 ). Can you gist a recreation of this so it will be simpler for me to fix it? ([Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/help))
> > 
> > -shay.banonOn Tuesday, March 8, 2011 at 5:15 PM, Jan Fiedler wrote:
> > 
> > I am seeing strange warnings (see below) when putting mappings
> > 
> > > containing 'dynamic\_templates'. The mapping seems perfectly right and  
> > > if you closely look at the warning below you find that only the order  
> > > of the 'match' and 'match\_mapping\_type' is different. Content wise the  
> > > mappings are the same. Is this a bug in Elastic Search? Is there  
> > > anything I can do on my end to avoid the warning (as it is badly  
> > > spamming my log files)?
> > 
> > > 2011-03-08 16:00:34,006 WARN  
> > > [elasticsearch[Fagin]clusterService#updateTask-pool-11-thread-1]  
> > > [org.elasticsearch.indices.cluster] - [Fagin] [test\_index] parsed  
> > > mapping [test\_type], and got different sources  
> > > original:  
> > > {"test\_type":{"dynamic\_templates":[{"template1":{"mapping":  
> > > {"index":"not\_analyzed","type":"string"},"match\_mapping\_type":"string","mat ch":"_"}}],"properties":  
> > > {}}}  
> > > parsed:  
> > > {"test\_type":{"dynamic\_templates":[{"template1":{"mapping":  
> > > {"index":"not\_analyzed","type":"string"},"match":"_","match\_mapping\_type":" string"}}],"properties":  
> > > {}}}

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 4:10am UTC](https://discuss.elastic.co/t/strange-warning-when-putting-mappings/4059/5 "2017-07-06T04:10:28Z")

</div>

Closed on July 6, 2017, 4:10am UTC


