# Make an analyzed field to a not\_analyzed

**URL:** <https://discuss.elastic.co/t/make-an-analyzed-field-to-a-not-analyzed/23978>\
**Category:** Elasticsearch\
**Created:** [June 19, 2015, 11:31am UTC](https://discuss.elastic.co/t/make-an-analyzed-field-to-a-not-analyzed/23978 "2015-06-19T11:31:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andimak](https://avatars.discourse-cdn.com/v4/letter/a/f6c823/32.png) [@andimak](https://discuss.elastic.co/u/andimak)\
**Post date:** [June 19, 2015, 11:31am UTC](https://discuss.elastic.co/t/make-an-analyzed-field-to-a-not-analyzed/23978/1 "2015-06-19T11:31:01Z")

</div>

Hi there,

I have some a field "domain" and a filtered alias on that field.  
The problem is i have the field "domain" with default settings, which means "analyzed".  
I have "domain" values like "[test.com](http://test.com)" and "[test-book.com](http://test-book.com)" .

My alias search with with /test.com/\_search works fine, but all values with a hyphen do not work.  
I set the "domain" field "not\_analyzed" and it worked with that.

Can i now set all the indexed documents with the "not\_analyzed" mapping, cause i think it will only work for the new inserted documents. How can i fix that and make all the inserted fields from analyzed to not\_analyzed?

regards  
Andi

---

<div class="post-metadata">

**Author:** ![Joshua\_P](https://avatars.discourse-cdn.com/v4/letter/j/c89c15/32.png) [@Joshua\_P](https://discuss.elastic.co/u/Joshua_P)\
**Post date:** [June 19, 2015, 6:24pm UTC](https://discuss.elastic.co/t/make-an-analyzed-field-to-a-not-analyzed/23978/2 "2015-06-19T18:24:23Z")

</div>

When you change a mapping for an existing field, you have to reindex your data.

This [blog post](https://www.elastic.co/blog/changing-mapping-with-zero-downtime) outlines how to do this with zero downtime.

---

<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 6, 2017, 12:06am UTC](https://discuss.elastic.co/t/make-an-analyzed-field-to-a-not-analyzed/23978/3 "2017-07-06T00:06:23Z")

</div>


