FT.DICTADD

FT.DICTADD dict term [term ...]
Available in:
Redis Open Source / Search 1.4.0
Time complexity:
O(1)
ACL categories:
@search,
Compatibility:
Redis Software and Redis Cloud compatibility

Add terms to a dictionary

Examples

Required arguments

dict

is dictionary name.

term

term to add to the dictionary.

Examples

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

Redis Software and Redis Cloud compatibility

Redis
Software
Redis
Cloud
Notes
✅ Supported
❌ Flex
✅ Pro
✅ Essentials

Return information

Integer reply: the number of new terms added to the dictionary.

See also

FT.DICTDEL | FT.DICTDUMP

RediSearch

RATE THIS PAGE
Back to top ↑