Recreating all data by API in background?


(palmic) #1

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.
In lucene which was filebacked i was solving this by symlinks and it
was very effective.

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


(Clinton Gormley) #2

On Wed, 2012-01-04 at 01:09 -0800, michal.palma 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.
In lucene which was filebacked i was solving this by symlinks and it
was very effective.

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

Have a look at index aliases

http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases.html

clint


(palmic) #3

Just what i needed, thank you!

On Jan 4, 12:58 pm, Clinton Gormley cl...@traveljury.com wrote:

On Wed, 2012-01-04 at 01:09 -0800, michal.palma 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.
In lucene which was filebacked i was solving this by symlinks and it
was very effective.

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

Have a look at index aliases

http://www.elasticsearch.org/guide/reference/api/admin-indices-aliase...

clint


(system) #4