Hi!
I have upgraded ES from 1.7.5 to 2.3.5. Now I can't put settings (early i used index_analyzer instead of just analyzer):
{ "settings" : { "number_of_shards" : 1, "number_of_replicas": 1, "analysis": { "filter": { "autocomplete_filter": { "type": "edge_ngram", "min_gram": 1, "max_gram": 20 } }, "analyzer": { "autocomplete": { "type": "custom", "tokenizer": "standard", "filter": [ "lowercase", "autocomplete_filter" ] } } } }, "mappings" : { "contact" : { "properties" : { "orgInn" : { "type" : "string", "index" : "analyzed", "analyzer": "autocomplete", "search_analyzer": "standard" } } } } }
I am getting bad request error:
{ "error": { "root_cause": [ { "type": "mapper_parsing_exception", "reason": "Mapping definition for [orgInn] has unsupported parameters: [**index_analyzer** : autocomplete]" } ], "type": "mapper_parsing_exception", "reason": "Failed to parse mapping [contact]: Mapping definition for [orgInn] has unsupported parameters: [**index_analyzer** : autocomplete]", "caused_by": { "type": "mapper_parsing_exception", "reason": "Mapping definition for [orgInn] has unsupported parameters: [**index_analyzer** : autocomplete]" } }, "status": 400 }
It's strange that if I get pure 2.3.5 version (without upgrading) the request is succeed.
Why is that?