FT.ALIASADD

Since 1.1.0Search

Syntax

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

Creates an alias for an index: a second name, usable wherever the index's name is. Swapping an alias to a newly built index changes what clients search without changing the clients.

Examples

> FT.ALIASADD shop products
OK
> FT.SEARCH shop "@category:{furniture}" LIMIT 0 0
1) (integer) 2