--- acl_categories: - '@search' arguments: - name: dict type: string - multiple: true name: term type: string categories: - docs - develop - stack - oss - rs - rc - oss - kubernetes - clients complexity: O(1) description: Adds terms to a dictionary group: search hidden: false linkTitle: FT.DICTADD module: Search railroad_diagram: /images/railroad/ft.dictadd.svg since: 1.4.0 stack_path: docs/interact/search-and-query summary: Adds terms to a dictionary syntax_fmt: FT.DICTADD dict term [term ...] title: FT.DICTADD --- Add terms to a dictionary [Examples](#examples) ## Required arguments
dict is dictionary name.
term term to add to the dictionary.
## Examples
Add terms to a dictionary {{< highlight bash >}} 127.0.0.1:6379> FT.DICTADD dict foo bar "hello world" (integer) 3 {{< / highlight >}}
## Redis Software and Redis Cloud compatibility | Redis
Software | Redis Cloud
Flexible & Annual | Redis Cloud
Free & Fixed | Notes | |:----------------------|:-----------------|:-----------------|:------| | ✅ Supported | ✅ Supported | ✅ Supported | | ## Return information {{< multitabs id="ft-dictadd-return-info" tab1="RESP2" tab2="RESP3" >}} [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}}): the number of new terms added to the dictionary. -tab-sep- [Integer reply]({{< relref "/develop/reference/protocol-spec#integers" >}}): the number of new terms added to the dictionary. {{< /multitabs >}} ## See also [`FT.DICTDEL`]({{< relref "commands/ft.dictdel/" >}}) | [`FT.DICTDUMP`]({{< relref "commands/ft.dictdump/" >}}) ## Related topics [RediSearch]({{< relref "/develop/ai/search-and-query/" >}})