# Change mapping with out deleting index

**URL:** https://discuss.elastic.co/t/change-mapping-with-out-deleting-index/10813
**Category:** Elasticsearch
**Created:** [February 20, 2013, 8:04am UTC](https://discuss.elastic.co/t/change-mapping-with-out-deleting-index/10813 "2013-02-20T08:04:47Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Alexis\_Okuwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexis_okuwa/32/1983_2.png) [@Alexis\_Okuwa](https://discuss.elastic.co/u/Alexis_Okuwa)
#### Post date: [February 20, 2013, 8:04am UTC](https://discuss.elastic.co/t/change-mapping-with-out-deleting-index/10813/1 "2013-02-20T08:04:47Z")

</div>

I wanted to know if there is a way to change the mapping with out having to  
delete everything in the index, I dont mind if this takes a long period of  
time with the more doucmetns i have. As elastisearch is schma free it would  
be nice, even on non schma free systems you can change the properties of  
fields. While my project is still being made i am able to delete the data  
with out having any upset users, but its nice to have lots of data built up  
to see how things scale data usage larger seraches and so on.

--  
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: ![Rafal\_Kuc\_3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rafal_kuc_3/32/799_2.png) [@Rafal\_Kuc\_3](https://discuss.elastic.co/u/Rafal_Kuc_3)
#### Post date: [February 20, 2013, 8:10am UTC](https://discuss.elastic.co/t/change-mapping-with-out-deleting-index/10813/2 "2013-02-20T08:10:47Z")

</div>

Hello!

Some modifications of the mappings are allowed - you can change a single field to being a multi field or add new fields. However, you can't change a non stored field to being stored or analyzed field to not - analyzed and vice versa. Even if you could you would still be forced to re-index all your documents as once the document is written into Lucene index segment it can't be changed.

_--_

Regards,

Rafał Kuć

Sematext :: [http://sematext.com/](http://sematext.com/) _:: Solr - Lucene - Nutch - ElasticSearch_

I wanted to know if there is a way to change the mapping with out having to delete everything in the index, I dont mind if this takes a long period of time with the more doucmetns i have. As elastisearch is schma free it would be nice, even on non schma free systems you can change the properties of fields. While my project is still being made i am able to delete the data with out having any upset users, but its nice to have lots of data built up to see how things scale data usage larger seraches and so on.

--

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: ![Alexis\_Okuwa](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alexis_okuwa/32/1983_2.png) [@Alexis\_Okuwa](https://discuss.elastic.co/u/Alexis_Okuwa)
#### Post date: [February 20, 2013, 8:39am UTC](https://discuss.elastic.co/t/change-mapping-with-out-deleting-index/10813/3 "2013-02-20T08:39:17Z")

</div>

I dont mind if the whole index needs to be re-indexed I just dont want to  
always have to loose data everytime i need to make a change to the mapping  
the application i am working on is logging based so if someone cant access  
some logs from 2 months ago its okay until every thing comes back online.

On Wed, Feb 20, 2013 at 12:10 AM, Rafał Kuć [r.kuc@solr.pl](mailto:r.kuc@solr.pl) wrote:

> Hello!
> 
> Some modifications of the mappings are allowed - you can change a single  
> field to being a multi field or add new fields. However, you can't change a  
> non stored field to being stored or analyzed field to not - analyzed and  
> vice versa. Even if you could you would still be forced to re-index all  
> your documents as once the document is written into Lucene index segment it  
> can't be changed.
> 
> \*--  
> Regards,  
> Rafał Kuć  
> Sematext :: _[http://sematext.com/](http://sematext.com/)_ :: Solr - Lucene - Nutch -  
> Elasticsearch
> 
> - 
> 
> ## I wanted to know if there is a way to change the mapping with out having to delete everything in the index, I dont mind if this takes a long period of time with the more doucmetns i have. As elastisearch is schma free it would be nice, even on non schma free systems you can change the properties of fields. While my project is still being made i am able to delete the data with out having any upset users, but its nice to have lots of data built up to see how things scale data usage larger seraches and so on.
> 
> 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).

--  
Enjoy,  
Alexis Okuwa  
WojonsTech  
424.835.1223

--  
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: ![Rafal\_Kuc\_3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rafal_kuc_3/32/799_2.png) [@Rafal\_Kuc\_3](https://discuss.elastic.co/u/Rafal_Kuc_3)
#### Post date: [February 20, 2013, 8:47am UTC](https://discuss.elastic.co/t/change-mapping-with-out-deleting-index/10813/4 "2013-02-20T08:47:14Z")

</div>

Hello!

ElasticSearch can't re-index data on its own, you have to do it yourself. You can use \_source field to store your data, re-index to another index or even to a different cluster and then switch. But the thing is that you'll have to develop such a functionality on your side or you can take a look at this plugin: [https://github.com/karussell/elasticsearch-reindex](https://github.com/karussell/elasticsearch-reindex)

_--_

Regards,

Rafał Kuć

Sematext :: [http://sematext.com/](http://sematext.com/) _:: Solr - Lucene - Nutch - ElasticSearch_

I dont mind if the whole index needs to be re-indexed I just dont want to always have to loose data everytime i need to make a change to the mapping the application i am working on is logging based so if someone cant access some logs from 2 months ago its okay until every thing comes back online.

On Wed, Feb 20, 2013 at 12:10 AM, Rafał Kuć \<[r.kuc@solr.pl](mailto:r.kuc@solr.pl)\> wrote:

Hello!

Some modifications of the mappings are allowed - you can change a single field to being a multi field or add new fields. However, you can't change a non stored field to being stored or analyzed field to not - analyzed and vice versa. Even if you could you would still be forced to re-index all your documents as once the document is written into Lucene index segment it can't be changed.

_--_

Regards,

Rafał Kuć

Sematext :: [http://sematext.com/](http://sematext.com/) _:: Solr - Lucene - Nutch - ElasticSearch_

I wanted to know if there is a way to change the mapping with out having to delete everything in the index, I dont mind if this takes a long period of time with the more doucmetns i have. As elastisearch is schma free it would be nice, even on non schma free systems you can change the properties of fields. While my project is still being made i am able to delete the data with out having any upset users, but its nice to have lots of data built up to see how things scale data usage larger seraches and so on.

--

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%2Bunsubscribe@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%2Bunsubscribe@googlegroups.com).

For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--

Enjoy,

Alexis Okuwa

WojonsTech

424.835.1223

--

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:50am UTC](https://discuss.elastic.co/t/change-mapping-with-out-deleting-index/10813/5 "2017-07-06T02:50:35Z")

</div>


