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
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) 2Redis Software and Redis Cloud compatibility
| Redis Software |
Redis Cloud |
Notes |
|---|---|---|
| ✅ Standard |
❌ Standard |
Not supported on clustered databases. |
Return information
Integer reply: number of suggestions in the dictionary.
See also
FT.SUGADD | FT.SUGDEL | FT.SUGGET