# Error while putting new mapping

**URL:** <https://discuss.elastic.co/t/error-while-putting-new-mapping/16389>\
**Category:** Elasticsearch\
**Created:** [March 15, 2014, 9:00pm UTC](https://discuss.elastic.co/t/error-while-putting-new-mapping/16389 "2014-03-15T21:00:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eduardo\_Manrique](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eduardo_manrique/32/1728_2.png) [@Eduardo\_Manrique](https://discuss.elastic.co/u/Eduardo_Manrique)\
**Post date:** [March 15, 2014, 9:00pm UTC](https://discuss.elastic.co/t/error-while-putting-new-mapping/16389/1 "2014-03-15T21:00:31Z")

</div>

Hello,

I had the following error while creating a new mapping:

File "/opt/acme/pypyve1/site-packages/pyelasticsearch/client.py", line  
96, in decorate  
return func(\*args, query\_params=query\_params, \*\*kwargs)  
File "/opt/acme/pypyve1/site-packages/pyelasticsearch/client.py", line  
658, in put\_mapping  
query\_params=query\_params)  
File "/opt/acme/pypyve1/site-packages/pyelasticsearch/client.py", line  
254, in send\_request  
self.\_raise\_exception(resp, prepped\_response)  
File "/opt/acme/pypyve1/site-packages/pyelasticsearch/client.py", line  
269, in \_raise\_exception  
raise error\_class(response.status\_code, error\_message)  
ElasticHttpError: (400, u'RemoteTransportException[[Richard  
II][inet[/142.4.217.197:9300]][indices/mapping/put]]; nested:  
MergeMappingException[Merge failed with failures {[mapper [id] has  
different index values, mapper [id] has different `norms.enabled` values,  
mapper [id] has different tokenize values, mapper [id] has different  
index\_analyzer]}]; ')

Does anyone know what it means?

Thanks!

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/4123f6a2-e181-45a4-8d0a-b7b1369b920a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4123f6a2-e181-45a4-8d0a-b7b1369b920a%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [March 16, 2014, 6:30pm UTC](https://discuss.elastic.co/t/error-while-putting-new-mapping/16389/2 "2014-03-16T18:30:56Z")

</div>

It appears you are updating the mapping of an existing index. Not all  
values can be changed in an existing index since although  
Elasticsearch/Lucene might be schemaless, some underlying data structures  
are constructed with certain properties upon initialization. In your case,  
you cannot change the norms or index\_analyzer of the id field.

--  
Ivan

On Sat, Mar 15, 2014 at 2:00 PM, Eduardo Manrique  
[eduardo@s1mbi0se.com.br](mailto:eduardo@s1mbi0se.com.br)wrote:

> Hello,
> 
> I had the following error while creating a new mapping:
> 
> File "/opt/acme/pypyve1/site-packages/pyelasticsearch/client.py", line  
> 96, in decorate  
> return func(\*args, query\_params=query\_params, \*\*kwargs)  
> File "/opt/acme/pypyve1/site-packages/pyelasticsearch/client.py", line  
> 658, in put\_mapping  
> query\_params=query\_params)  
> File "/opt/acme/pypyve1/site-packages/pyelasticsearch/client.py", line  
> 254, in send\_request  
> self.\_raise\_exception(resp, prepped\_response)  
> File "/opt/acme/pypyve1/site-packages/pyelasticsearch/client.py", line  
> 269, in \_raise\_exception  
> raise error\_class(response.status\_code, error\_message)  
> ElasticHttpError: (400, u'RemoteTransportException[[Richard  
> II][inet[/142.4.217.197:9300]][indices/mapping/put]]; nested:  
> MergeMappingException[Merge failed with failures {[mapper [id] has  
> different index values, mapper [id] has different `norms.enabled` values,  
> mapper [id] has different tokenize values, mapper [id] has different  
> index\_analyzer]}]; ')
> 
> Does anyone know what it means?
> 
> Thanks!
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/4123f6a2-e181-45a4-8d0a-b7b1369b920a%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/4123f6a2-e181-45a4-8d0a-b7b1369b920a%40googlegroups.com)[https://groups.google.com/d/msgid/elasticsearch/4123f6a2-e181-45a4-8d0a-b7b1369b920a%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/4123f6a2-e181-45a4-8d0a-b7b1369b920a%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQBkOSgt47mjdPWwQ0DEXGa8ASWgO5QWJh3zsBzrDtrC3A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQBkOSgt47mjdPWwQ0DEXGa8ASWgO5QWJh3zsBzrDtrC3A%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 1:42am UTC](https://discuss.elastic.co/t/error-while-putting-new-mapping/16389/3 "2017-07-06T01:42:55Z")

</div>


