FT.DICTDUMP
Since 1.1.0Search
Syntax
FT.DICTDUMP dictReturns every word of a dictionary made with FT.DICTADD, sorted, in lower case as they are stored. Use it to check what FT.SPELLCHECK TERMS INCLUDE or TERMS EXCLUDE will use.
A dictionary that does not exist, or whose words have all been removed with FT.DICTDEL, returns an empty array, not an error.
Reply
An array of words, sorted by byte value.
Errors
ERR syntax: FT.DICTDUMP dict: anything but one name.
Examples
> FT.DICTADD brands zeta alpha Mango
(integer) 3
> FT.DICTDUMP brands
1) "alpha"
2) "mango"
3) "zeta"
> FT.DICTDUMP nope
(empty array)