# How can I dynamic change a field's index type?

**URL:** <https://discuss.elastic.co/t/how-can-i-dynamic-change-a-fields-index-type/13052>\
**Category:** Elasticsearch\
**Created:** [August 3, 2013, 6:39am UTC](https://discuss.elastic.co/t/how-can-i-dynamic-change-a-fields-index-type/13052 "2013-08-03T06:39:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raymond\_Wang](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@Raymond\_Wang](https://discuss.elastic.co/u/Raymond_Wang)\
**Post date:** [August 3, 2013, 6:39am UTC](https://discuss.elastic.co/t/how-can-i-dynamic-change-a-fields-index-type/13052/1 "2013-08-03T06:39:31Z")

</div>

for a given field in mapping, I want alter the index type from "analyzed"  
to "not\_analyzed".

after search, I found the page,  
"[http://stackoverflow.com/questions/16290636/how-to-update-a-field-type-in-elasticsearch](http://stackoverflow.com/questions/16290636/how-to-update-a-field-type-in-elasticsearch)"

but it does not work.

so...

any help would be appreciated.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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:** [August 3, 2013, 7:14am UTC](https://discuss.elastic.co/t/how-can-i-dynamic-change-a-fields-index-type/13052/2 "2013-08-03T07:14:53Z")

</div>

You can not change a mapping for an existing field.  
So you have to reindex.

--  
David 😉  
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 3 août 2013 à 08:39, Raymond Wang [rmn190@gmail.com](mailto:rmn190@gmail.com) a écrit :

for a given field in mapping, I want alter the index type from "analyzed" to "not\_analyzed".

after search, I found the page, "[http://stackoverflow.com/questions/16290636/how-to-update-a-field-type-in-elasticsearch](http://stackoverflow.com/questions/16290636/how-to-update-a-field-type-in-elasticsearch)"

but it does not work.

so...

## any help would be appreciated.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Raymond\_Wang](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@Raymond\_Wang](https://discuss.elastic.co/u/Raymond_Wang)\
**Post date:** [August 3, 2013, 8:44am UTC](https://discuss.elastic.co/t/how-can-i-dynamic-change-a-fields-index-type/13052/3 "2013-08-03T08:44:05Z")

</div>

thanks a lot~

On Saturday, August 3, 2013, David Pilato [david@pilato.fr](mailto:david@pilato.fr) wrote:

> You can not change a mapping for an existing field.  
> So you have to reindex.
> 
> --  
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 3 août 2013 à 08:39, Raymond Wang [rmn190@gmail.com](mailto:rmn190@gmail.com) a écrit :
> 
> for a given field in mapping, I want alter the index type from  
> "analyzed" to "not\_analyzed".
> 
> after search, I found the page, "  
> [How to update a field type in elasticsearch - Stack Overflow](http://stackoverflow.com/questions/16290636/how-to-update-a-field-type-in-elasticsearch)  
> "  
> but it does not work.  
> so...
> 
> any help would be appreciated.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> You received this message because you are subscribed to a topic in the  
> Google Groups "elasticsearch" group.  
> To unsubscribe from this topic, visit  
> [https://groups.google.com/d/topic/elasticsearch/CBeTBURLd5Q/unsubscribe](https://groups.google.com/d/topic/elasticsearch/CBeTBURLd5Q/unsubscribe).  
> To unsubscribe from this group and all its topics, send an email to  
> [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--

Best Regards  
rmn190

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:23am UTC](https://discuss.elastic.co/t/how-can-i-dynamic-change-a-fields-index-type/13052/4 "2017-07-06T02:23:09Z")

</div>


