FT.SUGLEN

Available in:
Redis Stack / Search 1.0.0
Time complexity:
O(1)

Get the size of an auto-complete suggestion dictionary

Syntax

FT.SUGLEN key

Examples

Required parameters

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

Feedback

If you've found issues on this page, or have suggestions for improvement, please submit a request to merge or open an issue in the repository.