ElasticSearch mapping add a not analysed field -
i'm trying add raw field not analysed current field.
{ "mappings": { "_default_": { "_all": { "enabled": true }, "dynamic_templates": [{ "string_fields": { "match": "*", "match_mapping_type": "string", "mapping": { "type": "string", "fields": { "raw": { "type": "string", "index": "not_analyzed" } } } } }] } } }
but when reindex, following error message:
caused by: org.elasticsearch.index.mapper.mapperparsingexception: root type mapping not empty after parsing!
any clue?
Comments
Post a Comment