FT.ALIASUPDATE

Syntax
FT.ALIASUPDATE alias index
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.

Examples

Required arguments

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

FT.ALIASADD | FT.ALIASDEL

RediSearch

Rate this page