updated to the latest API, which moves the experimental benchmark API (in the unreleased API versions master and 1.x) and includes a new indices.updateAliases example. Closes #83

This commit is contained in:
Spencer Alger
2014-04-22 11:09:51 -07:00
parent 95f5bdb7ea
commit 93648ce8c1
10 changed files with 362 additions and 271 deletions

View File

@ -3559,7 +3559,20 @@ Update specified aliases.
The default method is `POST` and the usual <<api-conventions,params and return values>> apply. See http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html[the elasticsearch docs] for more about this method.
// no examples
.Perform an atomic alias swap, for a rotating index
[source,js]
---------
client.indices.updateAliases({
body: {
actions: [
{ remove: { index: 'logstash-2014.04', alias: 'logstash-current' } },
{ add: { index: 'logstash-2014.05', alias: 'logstash-current' } }
]
}
}).then(function (response) {
// ...
}, errorHandler);
---------
==== Params