Skip to content

Commit eea1bc7

Browse files
lu3doclintongormley
authored andcommitted
Swap a index for the same alias (#19884)
In the example there was a alias removed and then a different alias created for the same index, but I think actually swapping a index by another one for the same alias would make more sense as an example here.
1 parent 46bf8ba commit eea1bc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/indices/aliases.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ POST /_aliases
4848
{
4949
"actions" : [
5050
{ "remove" : { "index" : "test1", "alias" : "alias1" } },
51-
{ "add" : { "index" : "test1", "alias" : "alias2" } }
51+
{ "add" : { "index" : "test2", "alias" : "alias1" } }
5252
]
5353
}
5454
--------------------------------------------------

0 commit comments

Comments
 (0)