# Is necessary to create reindexing on updated data?

**URL:** <https://discuss.elastic.co/t/is-necessary-to-create-reindexing-on-updated-data/4917>\
**Category:** Elasticsearch\
**Created:** [July 21, 2011, 5:45am UTC](https://discuss.elastic.co/t/is-necessary-to-create-reindexing-on-updated-data/4917 "2011-07-21T05:45:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_4](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sam\_4](https://discuss.elastic.co/u/Sam_4)\
**Post date:** [July 21, 2011, 5:45am UTC](https://discuss.elastic.co/t/is-necessary-to-create-reindexing-on-updated-data/4917/1 "2011-07-21T05:45:27Z")

</div>

Hi All

I'm using elastic search-0.16.2 java lib and using Rabbitmq River to  
create index from json documents. i had prepare index for 131072  
Records.if i do some updation on my 131072 records then i want to  
recreate index,before delete the old index then prepare new one.Is  
necessary to recreate index.Is there is any technique that can update  
index with new updated data.

please help me?  
Thanks

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [July 21, 2011, 6:35am UTC](https://discuss.elastic.co/t/is-necessary-to-create-reindexing-on-updated-data/4917/2 "2011-07-21T06:35:31Z")

</div>

You can reindex into a new index name, like "a\_2". Then, you can use aliases  
to mask that from the clients that search on the index. For example, have an  
alias call "a", and map it to "a\_1" index. When you reindex, index into a  
new index called "a\_2", and once its done, flip the alias "a" from "a\_1" to  
"a\_2". The aliases API is described here:  
[Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases.html).

On Thu, Jul 21, 2011 at 8:45 AM, sam [mishra.sameek@gmail.com](mailto:mishra.sameek@gmail.com) wrote:

> Hi All
> 
> I'm using Elasticsearch-0.16.2 java lib and using Rabbitmq River to  
> create index from json documents. i had prepare index for 131072  
> Records.if i do some updation on my 131072 records then i want to  
> recreate index,before delete the old index then prepare new one.Is  
> necessary to recreate index.Is there is any technique that can update  
> index with new updated data.
> 
> please help me?  
> Thanks

---

<div class="post-metadata">

**Author:** ![Sam\_4](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@Sam\_4](https://discuss.elastic.co/u/Sam_4)\
**Post date:** [July 21, 2011, 8:55am UTC](https://discuss.elastic.co/t/is-necessary-to-create-reindexing-on-updated-data/4917/3 "2011-07-21T08:55:31Z")

</div>

thanks for reply.can u please explain which java API will help me to  
archive this and provide some implement ion details of this API.

On Jul 21, 11:35 am, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> You can reindex into a new index name, like "a\_2". Then, you can use aliases  
> to mask that from the clients that search on the index. For example, have an  
> alias call "a", and map it to "a\_1" index. When you reindex, index into a  
> new index called "a\_2", and once its done, flip the alias "a" from "a\_1" to  
> "a\_2". The aliases API is described here:[Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-indices-aliase)....
> 
> On Thu, Jul 21, 2011 at 8:45 AM, sam [mishra.sam...@gmail.com](mailto:mishra.sam...@gmail.com) wrote:
> 
> > Hi All
> 
> > I'm using Elasticsearch-0.16.2 java lib and using Rabbitmq River to  
> > create index from json documents. i had prepare index for 131072  
> > Records.if i do some updation on my 131072 records then i want to  
> > recreate index,before delete the old index then prepare new one.Is  
> > necessary to recreate index.Is there is any technique that can update  
> > index with new updated data.
> 
> > please help me?  
> > Thanks

---

<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:59am UTC](https://discuss.elastic.co/t/is-necessary-to-create-reindexing-on-updated-data/4917/4 "2017-07-06T03:59:55Z")

</div>


