# How to change analyzer after index database?

**URL:** <https://discuss.elastic.co/t/how-to-change-analyzer-after-index-database/33602>\
**Category:** Elasticsearch\
**Created:** [November 3, 2015, 7:45am UTC](https://discuss.elastic.co/t/how-to-change-analyzer-after-index-database/33602 "2015-11-03T07:45:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![NgocPham](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ngocpham/32/6242_2.png) [@NgocPham](https://discuss.elastic.co/u/NgocPham)\
**Post date:** [November 3, 2015, 7:45am UTC](https://discuss.elastic.co/t/how-to-change-analyzer-after-index-database/33602/1 "2015-11-03T07:45:01Z")

</div>

sorry, im newbie and i have one question:  
i created one index like this  
curl -XPUT '[http://localhost:9200/users/user/1](http://localhost:9200/users/user/1)' -d '{  
"user" : "test1",  
"password" : "test2"  
}'  
And i have something like this in mapping 😄  
"user": {  
"properties": {  
"password": {  
"type": "string"  
},  
"user": {  
"type": "string"  
}  
}  
}

My question is : Have anyway change analyzer after created index ? Like i want change default analyzer to one analyzer i have.  
"user": {  
"type": "string",  
"analyzer" :"xxx";  
}

Thanks for your help!

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 3, 2015, 7:56am UTC](https://discuss.elastic.co/t/how-to-change-analyzer-after-index-database/33602/2 "2015-11-03T07:56:55Z")

</div>

You need to reindex.

---

<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, 11:41pm UTC](https://discuss.elastic.co/t/how-to-change-analyzer-after-index-database/33602/3 "2017-07-05T23:41:03Z")

</div>


