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

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -