Back to Redis

FT._LIST

content/commands/ft._list.md

latest1.3 KB
Original Source

Returns a list of all existing indexes.

{{% alert title="Temporary command" color="info" %}} The prefix _ in the command indicates, this is a temporary command.

In the future, a [SCAN]({{< relref "/commands/scan" >}}) type of command will be added, for use when a database contains a large number of indices. {{% /alert %}}

Examples

sql
FT._LIST
1) "idx"
2) "movies"
3) "imdb"

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-_list-return-info" tab1="RESP2" tab2="RESP3" >}}

[Array]({{< relref "/develop/reference/protocol-spec#arrays" >}}) of index names as [simple strings]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}).

-tab-sep-

[Set]({{< relref "/develop/reference/protocol-spec#sets" >}}) of index names as [simple strings]({{< relref "/develop/reference/protocol-spec#simple-strings" >}}).

{{< /multitabs >}}