# Best way to reindex in production

**URL:** https://discuss.elastic.co/t/best-way-to-reindex-in-production/11792
**Category:** Elasticsearch
**Created:** [May 3, 2013, 4:46am UTC](https://discuss.elastic.co/t/best-way-to-reindex-in-production/11792 "2013-05-03T04:46:01Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Matt\_Chambers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_chambers/32/607_2.png) [@Matt\_Chambers](https://discuss.elastic.co/u/Matt_Chambers)
#### Post date: [May 3, 2013, 4:46am UTC](https://discuss.elastic.co/t/best-way-to-reindex-in-production/11792/1 "2013-05-03T04:46:01Z")

</div>

Hello,

I'm running Elastic 0.26, 2 nodes. I need to make a change to the  
mapping. The cluster is in heavy use 24/7. What is the best way to do  
this?

-Matt

--  
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: [May 3, 2013, 5:50am UTC](https://discuss.elastic.co/t/best-way-to-reindex-in-production/11792/2 "2013-05-03T05:50:41Z")

</div>

By now, have a look at:

> **[karussell/elasticsearch-reindex](https://github.com/karussell/elasticsearch-reindex)**
>
> elasticsearch-reindex - Simple re-indexing. To backup, apply index settings changes and more ElasticMagic

  

> **[crate/elasticsearch-inout-plugin](https://github.com/crate/elasticsearch-inout-plugin)**
>
> elasticsearch-inout-plugin - An Elasticsearch plugin which provides the ability to export data by query on server side.

  
[http://euphonious-intuition.com/2012/08/reindexing-your-elasticsearch-data-with-scanscroll/](http://euphonious-intuition.com/2012/08/reindexing-your-elasticsearch-data-with-scanscroll/)

The last one is using scan&scroll API: [http://www.elasticsearch.org/guide/reference/api/search/scroll/](http://www.elasticsearch.org/guide/reference/api/search/scroll/)

## HTH

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

Le 3 mai 2013 à 06:46, Matt Chambers [yougotrooted@gmail.com](mailto:yougotrooted@gmail.com) a écrit :

Hello,

I'm running Elastic 0.26, 2 nodes. I need to make a change to the mapping. The cluster is in heavy use 24/7. What is the best way to do this?

## -Matt

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: ![Matt\_Chambers](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matt_chambers/32/607_2.png) [@Matt\_Chambers](https://discuss.elastic.co/u/Matt_Chambers)
#### Post date: [May 4, 2013, 1:17am UTC](https://discuss.elastic.co/t/best-way-to-reindex-in-production/11792/3 "2013-05-04T01:17:33Z")

</div>

Thanks David, I checked those out, although I'm not certain of something.  
What happens to the updates that happen to the index during the export?  
Are those just lost?

On Friday, May 3, 2013 5:50:41 PM UTC+12, David Pilato wrote:

> By now, have a look at:  
> [GitHub - karussell/elasticsearch-reindex: Simple re-indexing. To backup, apply index settings changes and more ElasticMagic](https://github.com/karussell/elasticsearch-reindex)  
> [GitHub - crate/elasticsearch-inout-plugin: An Elasticsearch plugin which provides the ability to export data by query on server side.](https://github.com/crate/elasticsearch-inout-plugin)
> 
> [http://euphonious-intuition.com/2012/08/reindexing-your-elasticsearch-data-with-scanscroll/](http://euphonious-intuition.com/2012/08/reindexing-your-elasticsearch-data-with-scanscroll/)
> 
> The last one is using scan&scroll API:  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/search/scroll/)
> 
> ## HTH
> 
> David 😉  
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> 
> Le 3 mai 2013 à 06:46, Matt Chambers \<[yougot...@gmail.com](mailto:yougot...@gmail.com) \<javascript:\>\>  
> a écrit :
> 
> Hello,
> 
> I'm running Elastic 0.26, 2 nodes. I need to make a change to the  
> mapping. The cluster is in heavy use 24/7. What is the best way to do  
> this?
> 
> -Matt
> 
> --  
> 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> 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: ![dobe](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dobe/32/2152_2.png) [@dobe](https://discuss.elastic.co/u/dobe)
#### Post date: [May 4, 2013, 4:31am UTC](https://discuss.elastic.co/t/best-way-to-reindex-in-production/11792/4 "2013-05-04T04:31:24Z")

</div>

hi matt

we are currently working to implement a direct re-index in  
[GitHub - crate/elasticsearch-inout-plugin: An Elasticsearch plugin which provides the ability to export data by query on server side.](https://github.com/crate/elasticsearch-inout-plugin), this should be  
available in a week or so.

However - note that the inout plugin is only compatible with elasticsearch  
0.90.

br, bernd

The feature will allow you to reindex directly on a given index.

On Saturday, May 4, 2013 3:17:33 AM UTC+2, Matt Chambers wrote:

> Thanks David, I checked those out, although I'm not certain of something.  
> What happens to the updates that happen to the index during the export?  
> Are those just lost?

For the inout plugin \_export command, yes. You can compare the export with  
a large query, which does not take new or updated documents into account,  
since its start.

> 

> On Friday, May 3, 2013 5:50:41 PM UTC+12, David Pilato wrote:
> 
> > By now, have a look at:  
> > [GitHub - karussell/elasticsearch-reindex: Simple re-indexing. To backup, apply index settings changes and more ElasticMagic](https://github.com/karussell/elasticsearch-reindex)  
> > [GitHub - crate/elasticsearch-inout-plugin: An Elasticsearch plugin which provides the ability to export data by query on server side.](https://github.com/crate/elasticsearch-inout-plugin)
> > 
> > [http://euphonious-intuition.com/2012/08/reindexing-your-elasticsearch-data-with-scanscroll/](http://euphonious-intuition.com/2012/08/reindexing-your-elasticsearch-data-with-scanscroll/)
> > 
> > The last one is using scan&scroll API:  
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/search/scroll/)
> > 
> > ## HTH
> > 
> > David 😉  
> > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
> > 
> > Le 3 mai 2013 à 06:46, Matt Chambers [yougot...@gmail.com](mailto:yougot...@gmail.com) a écrit :
> > 
> > Hello,
> > 
> > I'm running Elastic 0.26, 2 nodes. I need to make a change to the  
> > mapping. The cluster is in heavy use 24/7. What is the best way to do  
> > this?
> > 
> > -Matt
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@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: ![monika\_maheshwari](https://avatars.discourse-cdn.com/v4/letter/m/f9ae1b/32.png) [@monika\_maheshwari](https://discuss.elastic.co/u/monika_maheshwari)
#### Post date: [June 6, 2017, 7:22am UTC](https://discuss.elastic.co/t/best-way-to-reindex-in-production/11792/5 "2017-06-06T07:22:37Z")

</div>

Hey i am having same issue that how the updates will happen during export. Have you resolved that.

---

<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: [November 4, 2022, 4:01am UTC](https://discuss.elastic.co/t/best-way-to-reindex-in-production/11792/6 "2022-11-04T04:01:24Z")

</div>


