Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion docs/api_methods_0_90.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -2915,7 +2915,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/0.90/indices-aliases.html[the elasticsearch docs] for more about this method.

// no examples
.Perform an atomic alias swap, as for a rotating index
[source,js]
---------
client.indices.updateAliases({
body:{
actions:[
{remove: {index: 'myindex-20140410', alias: 'myindex'}},
{add: {index: 'myindex-20140411', alias: 'myindex'}}
]
}
}, function (errors, response) {
// ...
});
---------


==== Params
Expand Down