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

@ -0,0 +1,14 @@
.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);
---------