Error while putting new mapping

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4123f6a2-e181-45a4-8d0a-b7b1369b920a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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.brwrote:

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.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/4123f6a2-e181-45a4-8d0a-b7b1369b920a%40googlegroups.comhttps://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.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CALY%3DcQBkOSgt47mjdPWwQ0DEXGa8ASWgO5QWJh3zsBzrDtrC3A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.