Back to Redis

FT.DICTDUMP

content/commands/ft.dictdump.md

latest1.3 KB
Original Source

Dump all terms in the given dictionary

Examples

Required argumemts

<details open> <summary><code>dict</code></summary>

is dictionary name.

</details>

Examples

<details open> <summary><b>Dump all terms in the dictionary</b></summary>

{{< highlight bash >}} 127.0.0.1:6379> FT.DICTDUMP dict

  1. "foo"
  2. "bar"
  3. "hello world" {{< / highlight >}}
</details>

Redis Software and Redis Cloud compatibility

| Redis Software | Redis Cloud Flexible & Annual | Redis Cloud Free & Fixed | <span style="min-width: 9em; display: table-cell">Notes</span> | |:----------------------|:-----------------|:-----------------|:------| | <span title="Supported">✅ Supported</span> | <span title="Supported">✅ Supported</span> | <span title="Supported">✅ Supported</nobr></span> | |

Return information

{{< multitabs id="ft-dictdump-return-info" tab1="RESP2" tab2="RESP3" >}}

[Array]({{< relref "/develop/reference/protocol-spec#arrays" >}}) of dictionary terms.

-tab-sep-

[Set]({{< relref "/develop/reference/protocol-spec#sets" >}}) of dictionary terms.

{{< /multitabs >}}

See also

[FT.DICTADD]({{< relref "commands/ft.dictadd/" >}}) | [FT.DICTDEL]({{< relref "commands/ft.dictdel/" >}})

[RediSearch]({{< relref "/develop/ai/search-and-query/" >}})