node-elasticsearch-client
node-elasticsearch-client copied to clipboard
Bulk API upload deletes previous index
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:

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 .
Anything that i run through the following code has this effect:
getClient(args).bulk(commands, {})
.on('...)
.exec();
https://gist.github.com/pulkitsinghal/7122079