# How to update analyzed to not analyzed query in elasticsearch?

**URL:** <https://discuss.elastic.co/t/how-to-update-analyzed-to-not-analyzed-query-in-elasticsearch/51055>\
**Category:** Elasticsearch\
**Created:** [May 26, 2016, 11:45am UTC](https://discuss.elastic.co/t/how-to-update-analyzed-to-not-analyzed-query-in-elasticsearch/51055 "2016-05-26T11:45:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajnikant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rajnikant/32/6490_2.png) [@Rajnikant](https://discuss.elastic.co/u/Rajnikant)\
**Post date:** [May 26, 2016, 11:45am UTC](https://discuss.elastic.co/t/how-to-update-analyzed-to-not-analyzed-query-in-elasticsearch/51055/1 "2016-05-26T11:45:24Z")

</div>

i want to update my index mapping.  
In my existing mapping query is analyzed and i want not\_analyzed for term query.  
how i can do this?  
i have one idea is re indexing. a  
any one have another idea for that?

---

<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:** [May 27, 2016, 4:36am UTC](https://discuss.elastic.co/t/how-to-update-analyzed-to-not-analyzed-query-in-elasticsearch/51055/2 "2016-05-27T04:36:22Z")

</div>

In my opinion:  
create more type in index.  
One type is analyzed and one is not\_analyzed.  
And search whatever you want with other type.

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [May 27, 2016, 6:23am UTC](https://discuss.elastic.co/t/how-to-update-analyzed-to-not-analyzed-query-in-elasticsearch/51055/3 "2016-05-27T06:23:58Z")

</div>

You'd need to reindex into the new type then, plus it may be confusing.

I'd just reindex and then leverage multifields.

---

<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:48pm UTC](https://discuss.elastic.co/t/how-to-update-analyzed-to-not-analyzed-query-in-elasticsearch/51055/4 "2017-07-05T22:48:38Z")

</div>


