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]}]; ')
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.
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]}]; ')
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.