FT.ALIASUPDATE
- Available in:
- Redis Stack / Search 1.0.0
- Time complexity:
- O(1)
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.
Syntax
FT.ALIASUPDATE alias index
Required parameters
alias index
is alias to be added to an index.
Return
FT.ALIASUPDATE returns a simple string reply OK
if executed correctly, or an error reply otherwise.
Examples
Update an index alias
Update the alias of an index.
127.0.0.1:6379> FT.ALIASUPDATE alias idx
OK
See also
Related topics
Feedback
If you've found issues on this page, or have suggestions for improvement, please submit a request to merge or open an issue in the repository.