Available in: Redis Stack
Time complexity: O(1)
Add an alias to an index. This allows an administrator to transparently redirect application queries to alternative indexes.
Indexes can have more than one alias, though an alias cannot refer to another alias.
@returns
[] otherwise.
redis> FT.ALIASADD alias idx
OK
redis> FT.ALIASADD alias idx
(error) Alias already exists