Skip to main content
Use SEARCH.LISTALIASES to return all aliases and the indexes they point to. The reply pairs each alias with its target index name, which is how you check what an alias currently resolves to before or after swapping it. Aliases whose target no longer exists are still listed, since an alias may point at a name that has not been created yet. See Listing Aliases for the feature guide.

Syntax

Response

Returns an unordered array of [alias, index_name] pairs, or an empty array if no aliases exist. The response can include aliases whose target index no longer exists. To list every index in the database, use SEARCH.LISTINDEXES. The SDKs below decode the pairs into an object or dictionary that maps each alias to its index name.

Examples