# Recreating all data by API in background?

**URL:** <https://discuss.elastic.co/t/recreating-all-data-by-api-in-background/6270>\
**Category:** Elasticsearch\
**Created:** [January 3, 2012, 2:34pm UTC](https://discuss.elastic.co/t/recreating-all-data-by-api-in-background/6270 "2012-01-03T14:34:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![palmic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/palmic/32/3013_2.png) [@palmic](https://discuss.elastic.co/u/palmic)\
**Post date:** [January 3, 2012, 2:34pm UTC](https://discuss.elastic.co/t/recreating-all-data-by-api-in-background/6270/1 "2012-01-03T14:34:55Z")

</div>

I am switching from lucene which was primary fulltext provider for my project  
and i cant find sollution for my issue:  
I need to be able to recreate all (or some part of) elasticsearch data in  
background while previous revision still will be online.  
I was doing this in lucene which was filebacked trough symlinks which was  
very effective.

Does anybody knows some formula how to do this in elasticsearch?  
Thank you.

--  
View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/recreating-all-data-by-API-in-background-tp3629222p3629222.html](http://elasticsearch-users.115913.n3.nabble.com/recreating-all-data-by-API-in-background-tp3629222p3629222.html)  
Sent from the ElasticSearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [January 6, 2012, 5:32pm UTC](https://discuss.elastic.co/t/recreating-all-data-by-api-in-background/6270/2 "2012-01-06T17:32:55Z")

</div>

Index aliases is probably what you are looking for:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

Create a new index with a unique name while the searchers use the old  
index via an alias. When the new index is complete, point the alias to  
the new index. You can then delete the old index if you want.

--  
Ivan

On Tue, Jan 3, 2012 at 6:34 AM, palmic [michal.palma@gmail.com](mailto:michal.palma@gmail.com) wrote:

> I am switching from lucene which was primary fulltext provider for my project  
> and i cant find sollution for my issue:  
> I need to be able to recreate all (or some part of) elasticsearch data in  
> background while previous revision still will be online.  
> I was doing this in lucene which was filebacked trough symlinks which was  
> very effective.
> 
> Does anybody knows some formula how to do this in elasticsearch?  
> Thank you.
> 
> --  
> View this message in context: [http://elasticsearch-users.115913.n3.nabble.com/recreating-all-data-by-API-in-background-tp3629222p3629222.html](http://elasticsearch-users.115913.n3.nabble.com/recreating-all-data-by-API-in-background-tp3629222p3629222.html)  
> Sent from the Elasticsearch Users mailing list archive at [Nabble.com](http://Nabble.com).

---

<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, 3:43am UTC](https://discuss.elastic.co/t/recreating-all-data-by-api-in-background/6270/3 "2017-07-06T03:43:39Z")

</div>


