Elasticsearch.js function for performing atomic alias remove and add?

http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.htmldocuments a technique to atomically rename an alias within a single API
call using a remove and add operation.

Is there a way to accomplish this same thing using a single
elasticsearch.js API function call? I know I could do an
indices.deleteAlias followed by an indices.putAlias, but that wouldn't
be atomic. It's not clear to me exactly what indices.updateAliases does,
but doesn't appear to be an atomic remove/add.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/baf08f9f-f128-43f0-9532-ddae5b23aa80%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

You are correct, the indices.updateAliases() method expects an array of
actions for it's body (as described on the page you linked).

Spencer

On Monday, April 7, 2014 10:31:30 AM UTC-7, Brent D wrote:

Elasticsearch Platform — Find real-time answers at scale | Elastic a technique to atomically rename an alias within a single API
call using a remove and add operation.

Is there a way to accomplish this same thing using a single
elasticsearch.js API function call? I know I could do an
indices.deleteAlias followed by an indices.putAlias, but that
wouldn't be atomic. It's not clear to me exactly what
indices.updateAliases does, but doesn't appear to be an atomic
remove/add.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/34d267b3-aaf9-4288-9ca2-15d35a0949e2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.