FT.DICTADD

Syntax
FT.DICTADD dict term [term ...]
Available in:
Redis Stack / Search 1.4.0
Time complexity:
O(1)

Add terms to a dictionary

Examples

Required arguments

dict

is dictionary name.

term

term to add to the dictionary.

Return

FT.DICTADD returns an integer reply, the number of new terms that were added.

Examples

Add terms to a dictionary
127.0.0.1:6379> FT.DICTADD dict foo bar "hello world"
(integer) 3

See also

FT.DICTDEL | FT.DICTDUMP

RediSearch


RATE THIS PAGE
Back to top ↑