node-elasticsearch-client icon indicating copy to clipboard operation
node-elasticsearch-client copied to clipboard

Bulk API upload deletes previous index

Open pulkitsinghal opened this issue 12 years ago • 2 comments

I setup an empty index with 5 shards and 2 replicas and then ran the bulk upload method using node-elasticsearch-client, this resulted in the index being deleted and recreated with a 1shard/1replica configuration!

Is this a default behavior in node-elasticsearch-client code? If so, then how can I get around it?

Please note that the timestamps in this snapshot are in reverse order: screen shot 2013-08-08 at 4 49 38 pm

pulkitsinghal avatar Aug 09 '13 16:08 pulkitsinghal

Bulk upload? Do you mean insert?

Could you submit a gist and ill check it out? ty.

On Fri, Aug 9, 2013 at 12:54 PM, pulkitsinghal [email protected]:

I setup an empty index with 5 shards and 2 replicas and then ran the bulk upload method using node-elasticsearch-client, this resulted in the index being deleted and recreated with a 1shard/1replica configuration!

Is this a default behavior in node-elasticsearch-client code? If so, then how can I get around it?

Please not that the timestamps in this snapshot are in reverse order: [image: screen shot 2013-08-08 at 4 49 38 pm]https://f.cloud.github.com/assets/821963/939361/d3deec6c-0113-11e3-910a-59c32d91d49a.png

— Reply to this email directly or view it on GitHubhttps://github.com/phillro/node-elasticsearch-client/issues/102 .

phillro avatar Aug 09 '13 17:08 phillro

Anything that i run through the following code has this effect:

getClient(args).bulk(commands, {})
.on('...)
.exec();

https://gist.github.com/pulkitsinghal/7122079

pulkitsinghal avatar Oct 23 '13 16:10 pulkitsinghal