FT.DICTADD

FT.DICTADD dict term [term ...]
Railroad diagram for FT.DICTADD
dictadd(
    dict_name: str,  // The dictionary name
    terms: *str  // Terms to add to the dictionary
) → int  // Number of terms added
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
Flexible & Annual
Redis Cloud
Free & Fixed
Notes
✅ Supported ✅ Supported ✅ Supported

Return information

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

See also

FT.DICTDEL | FT.DICTDUMP

RediSearch

RATE THIS PAGE
Back to top ↑
Morty Proxy This is a proxified and sanitized view of the page, visit original site.