FT.ALIASDEL

Since 1.1.0Search

Syntax

FT.ALIASDEL alias
  • Flags: write
  • ACL categories: @search, @slow, @write
  • Arity: -1

Deletes an alias made with FT.ALIASADD or FT.ALIASUPDATE. The index it pointed at, and the index's documents, are kept; commands that name the alias get Index not found from then on.

alias must be an alias. The name of an index is refused with ERR Alias does not exist, so this command cannot drop an index. FT.DROPINDEX given an alias does: it drops the index the alias points at, and its aliases with it.

Reply

OK.

Errors

  • ERR Alias does not exist: no alias of that name.
  • ERR wrong number of arguments for 'FT.ALIASDEL' command: anything but one name.

Examples

> FT.ALIASADD shop products
OK
> FT.ALIASDEL shop
OK
> FT.ALIASDEL shop
(error) ERR Alias does not exist
> FT.SEARCH shop desk NOCONTENT
(error) SEARCH_INDEX_NOT_FOUND Index not found: shop
> FT.ALIASDEL products
(error) ERR Alias does not exist