Skip to main content
Aliases let you create alternative names for your search indices. This is useful for zero-downtime reindexing — you can build a new index, then atomically swap the alias to point to it.

Adding an Alias

The SEARCH.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.
A common pattern is to use aliases for zero-downtime reindexing:

Deleting an Alias

The SEARCH.ALIASDEL command removes an alias. Returns 1 if the alias was deleted, or 0 if the alias was not found.

Listing Aliases

The SEARCH.LISTALIASES command returns all aliases and the indices they point to.