---
acl_categories:
- '@search'
arguments:
- name: key
type: string
categories:
- docs
- develop
- stack
- oss
- rs
- rc
- oss
- kubernetes
- clients
complexity: O(1)
description: Gets the size of an auto-complete suggestion dictionary
group: suggestion
hidden: false
linkTitle: FT.SUGLEN
module: Search
railroad_diagram: /images/railroad/ft.suglen.svg
since: 1.0.0
stack_path: docs/interact/search-and-query
summary: Gets the size of an auto-complete suggestion dictionary
syntax_fmt: FT.SUGLEN key
title: FT.SUGLEN
---
Get the size of an auto-complete suggestion dictionary
[Examples](#examples)
## Required arguments
key
is suggestion dictionary key.
## Examples
Get the size of an auto-complete suggestion dictionary
{{< highlight bash >}}
127.0.0.1:6379> FT.SUGLEN sug
(integer) 2
{{< / highlight >}}
## Redis Software and Redis Cloud compatibility
| Redis
Software | Redis
Cloud | Notes |
|:----------------------|:-----------------|:------|
| ✅ Standard
❌ Active-Active | ❌ Standard
❌ Active-Active | Not supported on clustered databases. |
## Return information
{{< multitabs id="ft-suglen-return-info"
tab1="RESP2"
tab2="RESP3" >}}
[Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}}): number of suggestions in the dictionary.
-tab-sep-
[Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}}): number of suggestions in the dictionary.
{{< /multitabs >}}
## See also
[`FT.SUGADD`]({{< relref "commands/ft.sugadd/" >}}) | [`FT.SUGDEL`]({{< relref "commands/ft.sugdel/" >}}) | [`FT.SUGGET`]({{< relref "commands/ft.sugget/" >}})
## Related topics
[RediSearch]({{< relref "/develop/ai/search-and-query/" >}})