# Mapping definition has unsupported parameters: search\_analyzer, analyzer

**URL:** https://discuss.elastic.co/t/mapping-definition-has-unsupported-parameters-search-analyzer-analyzer/140268
**Category:** Elasticsearch
**Created:** [July 17, 2018, 7:40am UTC](https://discuss.elastic.co/t/mapping-definition-has-unsupported-parameters-search-analyzer-analyzer/140268 "2018-07-17T07:40:18Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Steven\_Ensslen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steven_ensslen/32/26984_2.png) [@Steven\_Ensslen](https://discuss.elastic.co/u/Steven_Ensslen)
#### Post date: [July 17, 2018, 7:40am UTC](https://discuss.elastic.co/t/mapping-definition-has-unsupported-parameters-search-analyzer-analyzer/140268/1 "2018-07-17T07:40:18Z")

</div>

I have one template in my production cluster that is not working. Whenever I post to create a new index with it I get:

> POST ticket-me/doc/  
> {"admit\_email": "[example@example.com](mailto:example@example.com)"}

> {  
> "error": {  
> "root\_cause": [  
> {  
> "type": "mapper\_parsing\_exception",  
> "reason": "Mapping definition for [admit\_email] has unsupported parameters: [search\_analyzer : standard] [analyzer : autocomplete]"  
> }  
> ],  
> "type": "mapper\_parsing\_exception",  
> "reason": "Failed to parse mapping [doc]: Mapping definition for [admit\_email] has unsupported parameters: [search\_analyzer : standard] [analyzer : autocomplete]",  
> "caused\_by": {  
> "type": "mapper\_parsing\_exception",  
> "reason": "Mapping definition for [admit\_email] has unsupported parameters: [search\_analyzer : standard] [analyzer : autocomplete]"  
> }  
> },  
> "status": 400  
> }

If I change the name and the `index-patterns` to create a new template with the same configuration, that template works. The whole setup also works fine in my other cluster.

I'd appreciate any ideas.

Thanks.

The template is:

> PUT \_template/ticket  
> {  
> "index\_patterns": [  
> "ticket-\*"  
> ],  
> "settings": {  
> "number\_of\_replicas": 0,  
> "number\_of\_shards": 1,  
> "analysis": {  
> "filter": {  
> "autocomplete\_filter": {  
> "type": "edge\_ngram",  
> "min\_gram": 1,  
> "max\_gram": 20  
> }  
> },  
> "analyzer": {  
> "autocomplete": {  
> "type": "custom",  
> "tokenizer": "standard",  
> "filter": [  
> "lowercase",  
> "autocomplete\_filter"  
> ]  
> }  
> }  
> },  
> "refresh\_interval": "10s"  
> },  
> "mappings": {  
> "doc": {  
> "properties": {  
> "admit\_name": {  
> "type": "text",  
> "analyzer": "autocomplete",  
> "search\_analyzer": "standard"  
> },  
> "admit\_email": {  
> "type": "text",  
> "analyzer": "autocomplete",  
> "search\_analyzer": "standard"  
> },  
> "cart\_id": {  
> "type": "keyword"  
> },  
> "cart\_number": {  
> "type": "text",  
> "analyzer": "autocomplete",  
> "search\_analyzer": "standard"  
> },  
> "event\_name": {  
> "type": "keyword"  
> },  
> "event\_session\_id": {  
> "type": "keyword"  
> },  
> "event\_template\_id": {  
> "type": "keyword"  
> },  
> "extra": {  
> "type": "text",  
> "analyzer": "autocomplete",  
> "search\_analyzer": "standard"  
> },  
> "identity\_id": {  
> "type": "keyword"  
> },  
> "identity\_name": {  
> "type": "text",  
> "analyzer": "autocomplete",  
> "search\_analyzer": "standard"  
> },  
> "identity\_email": {  
> "type": "text",  
> "analyzer": "autocomplete",  
> "search\_analyzer": "standard"  
> },  
> "identity\_extra": {  
> "type": "text",  
> "analyzer": "autocomplete",  
> "search\_analyzer": "standard"  
> },  
> "membership\_code": {  
> "type": "text",  
> "analyzer": "autocomplete",  
> "search\_analyzer": "standard"  
> },  
> "message": {  
> "type": "text",  
> "analyzer": "autocomplete",  
> "search\_analyzer": "standard"  
> },  
> "order\_and\_session": {  
> "type": "keyword"  
> },  
> "order\_id": {  
> "type": "keyword"  
> },  
> "order\_number": {  
> "type": "text",  
> "analyzer": "autocomplete",  
> "search\_analyzer": "standard"  
> },  
> "order\_extra": {  
> "type": "text",  
> "analyzer": "autocomplete",  
> "search\_analyzer": "standard"  
> },  
> "order\_survey": {  
> "type": "object"  
> },  
> "org\_id": {  
> "type": "keyword"  
> },  
> "org\_name": {  
> "type": "text",  
> "analyzer": "autocomplete",  
> "search\_analyzer": "standard"  
> },  
> "org\_extra": {  
> "type": "text",  
> "analyzer": "autocomplete",  
> "search\_analyzer": "standard"  
> },  
> "purchased\_on": {  
> "type": "date"  
> },  
> "relevant\_at": {  
> "type": "date"  
> },  
> "scan\_code": {  
> "type": "text",  
> "analyzer": "autocomplete",  
> "search\_analyzer": "standard"  
> },  
> "seller\_id": {  
> "type": "keyword"  
> },  
> "start\_datetime": {  
> "type": "date"  
> },  
> "ticket\_type\_name": {  
> "type": "keyword"  
> },  
> "ticket\_group\_name": {  
> "type": "keyword"  
> }  
> }  
> }  
> }  
> }

---

<div class="post-metadata">

### Author: ![abdon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abdon/32/9195_2.png) [@abdon](https://discuss.elastic.co/u/abdon)
#### Post date: [July 18, 2018, 4:37pm UTC](https://discuss.elastic.co/t/mapping-definition-has-unsupported-parameters-search-analyzer-analyzer/140268/2 "2018-07-18T16:37:09Z")

</div>

Are there perhaps any other index templates registered with your production cluster? You could have another index template that causes the `admit_email` field to be mapped as for example a `keyword` field (which does not support `analyzer` and `search_analyzer`). That would explain the error you're seeing.

Can you post the output of `GET _template` on your production cluster here?

---

<div class="post-metadata">

### Author: ![Steven\_Ensslen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/steven_ensslen/32/26984_2.png) [@Steven\_Ensslen](https://discuss.elastic.co/u/Steven_Ensslen)
#### Post date: [July 19, 2018, 7:55am UTC](https://discuss.elastic.co/t/mapping-definition-has-unsupported-parameters-search-analyzer-analyzer/140268/3 "2018-07-19T07:55:42Z")

</div>

Thank you @abdon!!

There were two templates referencing the same index pattern! I've remove the second template and everything is working properly.

Thanks again,

Steven

---

<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: [August 16, 2018, 7:55am UTC](https://discuss.elastic.co/t/mapping-definition-has-unsupported-parameters-search-analyzer-analyzer/140268/4 "2018-08-16T07:55:47Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
