Adding an Alias
TheSEARCH.ALIASADD command creates a new alias or updates an existing alias to point to a different index.
Returns 1 if a new alias was created, or 2 if an existing alias was updated to point to a new index.
- TypeScript
- Python
- Redis CLI
- TypeScript
- Python
- Redis CLI
Deleting an Alias
TheSEARCH.ALIASDEL command removes an alias.
Returns 1 if the alias was deleted, or 0 if the alias was not found.
- TypeScript
- Python
- Redis CLI
Listing Aliases
TheSEARCH.LISTALIASES command returns all aliases and the indices they point to.
- TypeScript
- Python
- Redis CLI