FT.SUGLEN

FT.SUGLEN key
Available in:
Redis Open Source / Search 1.0.0
Time complexity:
O(1)
ACL categories:
@search,
Compatibility:
Redis Software and Redis Cloud compatibility

Get the size of an auto-complete suggestion dictionary

Examples

Required arguments

key

is suggestion dictionary key.

Examples

Get the size of an auto-complete suggestion dictionary
127.0.0.1:6379> FT.SUGLEN sug
(integer) 2

Redis Software and Redis Cloud compatibility

Redis
Software
Redis
Cloud
Notes
✅ Standard
❌ Active-Active
❌ Standard
❌ Active-Active
Not supported on clustered databases.

Return information

Integer reply: number of suggestions in the dictionary.

See also

FT.SUGADD | FT.SUGDEL | FT.SUGGET

RediSearch

RATE THIS PAGE
Back to top ↑