Is necessary to create reindexing on updated data?


(Sam-4) #1

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


(Shay Banon) #2

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:
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 wrote:

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


(Sam-4) #3

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 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:http://www.elasticsearch.org/guide/reference/api/admin-indices-aliase....

On Thu, Jul 21, 2011 at 8:45 AM, sam mishra.sam...@gmail.com wrote:

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


(system) #4