# Change Analyzer of suggest after indexing

**URL:** <https://discuss.elastic.co/t/change-analyzer-of-suggest-after-indexing/110750>\
**Category:** Elasticsearch\
**Created:** [December 7, 2017, 9:44pm UTC](https://discuss.elastic.co/t/change-analyzer-of-suggest-after-indexing/110750 "2017-12-07T21:44:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![manukaleel](https://avatars.discourse-cdn.com/v4/letter/m/4491bb/32.png) [@manukaleel](https://discuss.elastic.co/u/manukaleel)\
**Post date:** [December 7, 2017, 9:44pm UTC](https://discuss.elastic.co/t/change-analyzer-of-suggest-after-indexing/110750/1 "2017-12-07T21:44:13Z")

</div>

Is there any way I can change the “analyzer” and “search\_analyliser” in my suggest field? At the moment it’s set to “keyword” but I want to change it to “standard” ? Can I just close the index and change it and re-open it without losing data or will I have to re-index all the data?

If I can change it, then how would the query look like?

My existing mapping look like this.

{  
"mappings": {  
"item" : {  
"properties" : {  
"suggest" : {  
"type" : "completion",  
"analyzer" : "keyword",  
"search\_analyzer" : "keyword"  
},  
"part" : {  
"type": "text"  
}  
}  
}  
}  
}

---

<div class="post-metadata">

**Author:** ![luiz.santos](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/luiz.santos/32/24664_2.png) [@luiz.santos](https://discuss.elastic.co/u/luiz.santos)\
**Post date:** [December 15, 2017, 11:43am UTC](https://discuss.elastic.co/t/change-analyzer-of-suggest-after-indexing/110750/2 "2017-12-15T11:43:55Z")

</div>

Hi @manukaleel,

It is not possible to change your mapping. You will have to reindex your data.  
You can create the new index with the correct mapping and use the reindex API to help you.

[https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-reindex.html)

Hope it helps.

Cheers,  
LG

---

<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:** [January 12, 2018, 11:44am UTC](https://discuss.elastic.co/t/change-analyzer-of-suggest-after-indexing/110750/3 "2018-01-12T11:44:54Z")

</div>

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