# After upgdare to 2.3.5: Mapping definition has unsupported parameters

**URL:** <https://discuss.elastic.co/t/after-upgdare-to-2-3-5-mapping-definition-has-unsupported-parameters/58658>\
**Category:** Elasticsearch\
**Created:** [August 23, 2016, 8:43am UTC](https://discuss.elastic.co/t/after-upgdare-to-2-3-5-mapping-definition-has-unsupported-parameters/58658 "2016-08-23T08:43:31Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![einfoman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/einfoman/32/9186_2.png) [@einfoman](https://discuss.elastic.co/u/einfoman)\
**Post date:** [August 23, 2016, 8:43am UTC](https://discuss.elastic.co/t/after-upgdare-to-2-3-5-mapping-definition-has-unsupported-parameters/58658/1 "2016-08-23T08:43:32Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [August 23, 2016, 9:28am UTC](https://discuss.elastic.co/t/after-upgdare-to-2-3-5-mapping-definition-has-unsupported-parameters/58658/2 "2016-08-23T09:28:31Z")

</div>

Hi einfoman.  
This was listed in the breaking changes here: [https://www.elastic.co/guide/en/elasticsearch/reference/2.3/breaking\_20\_mapping\_changes.html#\_analyzer\_mappings](https://www.elastic.co/guide/en/elasticsearch/reference/2.3/breaking_20_mapping_changes.html#_analyzer_mappings)

---

<div class="post-metadata">

**Author:** ![einfoman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/einfoman/32/9186_2.png) [@einfoman](https://discuss.elastic.co/u/einfoman)\
**Post date:** [August 23, 2016, 9:50am UTC](https://discuss.elastic.co/t/after-upgdare-to-2-3-5-mapping-definition-has-unsupported-parameters/58658/3 "2016-08-23T09:50:27Z")

</div>

I saw this.  
And I send a true request, don't? I have no **index\_analyzer** parameter in the request but I have **analyzer** parameter  
Why in ES 2.3.5 (after upgrading) I get error but in new 2.3.5 (just installed) I can execute the request?

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [August 23, 2016, 10:13am UTC](https://discuss.elastic.co/t/after-upgdare-to-2-3-5-mapping-definition-has-unsupported-parameters/58658/4 "2016-08-23T10:13:04Z")

</div>

Ah, sorry. I had assumed from this comment that you meant index\_analyzer was giving you the issue

> [@einfoman](#):
>
> early i used index\_analyzer instead of just analyzer

I'm struggling to understand why a request with `analyzer` is returning an error response saying that you passed `index_analyzer`. Are you changing settings for an existing index or is this as part of defining a new index?

---

<div class="post-metadata">

**Author:** ![einfoman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/einfoman/32/9186_2.png) [@einfoman](https://discuss.elastic.co/u/einfoman)\
**Post date:** [August 23, 2016, 10:25am UTC](https://discuss.elastic.co/t/after-upgdare-to-2-3-5-mapping-definition-has-unsupported-parameters/58658/5 "2016-08-23T10:25:22Z")

</div>

I try to create a new index. I send a request exactly as in the topic.  
But I've got different results depending on ES instances.

---

<div class="post-metadata">

**Author:** ![einfoman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/einfoman/32/9186_2.png) [@einfoman](https://discuss.elastic.co/u/einfoman)\
**Post date:** [August 23, 2016, 12:07pm UTC](https://discuss.elastic.co/t/after-upgdare-to-2-3-5-mapping-definition-has-unsupported-parameters/58658/6 "2016-08-23T12:07:21Z")

</div>

I found out the reason why such behavior was.  
It turns out we uses templates and the template was with old mapping settings. We forgot update it when updated ES to 2.3.5.  
Anyway, it is not obvious and I didn't find any mentions about it.

---

<div class="post-metadata">

**Author:** ![Mark\_Harwood](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_harwood/32/10538_2.png) [@Mark\_Harwood](https://discuss.elastic.co/u/Mark_Harwood)\
**Post date:** [August 23, 2016, 1:57pm UTC](https://discuss.elastic.co/t/after-upgdare-to-2-3-5-mapping-definition-has-unsupported-parameters/58658/7 "2016-08-23T13:57:22Z")

</div>

Good catch!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 5, 2017, 10:25pm UTC](https://discuss.elastic.co/t/after-upgdare-to-2-3-5-mapping-definition-has-unsupported-parameters/58658/8 "2017-07-05T22:25:52Z")

</div>


