FT.SUGLEN

Syntax
FT.SUGLEN key
Available in:
Redis Stack / Search 1.0.0
Time complexity:
O(1)

Get the size of an auto-complete suggestion dictionary

Examples

Required arguments

key

is suggestion dictionary key.

Return

FT.SUGLEN returns an integer reply, which is the current size of the suggestion dictionary.

Examples

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

See also

FT.SUGADD | FT.SUGDEL | FT.SUGGET

RediSearch

Rate this page