FT.ALIASUPDATE
Syntax
FT.ALIASUPDATE alias index
- Available in:
- Redis Open Source / Search 1.0.0
- Time complexity:
- O(1)
- ACL categories:
-
@search
,
Add an alias to an index. If the alias is already associated with another index, FT.ALIASUPDATE removes the alias association with the previous index.
Required arguments
alias index
is alias to be added to an index.
Examples
Update an index alias
Update the alias of an index.
127.0.0.1:6379> FT.ALIASUPDATE alias idx
OK
Return information
One of the following:
- Simple string reply:
OK
if executed correctly. - Simple error reply in these cases: index does not exist.