FT.ALIASUPDATE alias index

Available in: Redis Stack

Time complexity: O(1)

Add an alias an index. If the alias is already associated with another index, FT.ALIASUPDATE will remove the alias association with the previous index.

Return

[] otherwise.

redis> FT.ALIASADD alias idx
OK
redis> FT.ALIASADD alias idx
OK