content/commands/ft.tagvals.md
Return a distinct set of values indexed in a Tag field
is full-text index name. You must first create the index using [FT.CREATE]({{< relref "commands/ft.create/" >}}).
is name of a Tag file defined in the schema.
</details>Use FT.TAGVALS if your tag indexes things like cities, categories, and so on.
FT.TAGVALS provides no paging or sorting, and the tags are not alphabetically sorted. FT.TAGVALS only operates on [tag fields]({{< relref "/develop/ai/search-and-query/advanced-concepts/tags" >}}). The returned strings are lowercase with whitespaces removed, but otherwise unchanged.
{{< highlight bash >}} 127.0.0.1:6379> FT.TAGVALS idx myTag
| 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> | |
{{< multitabs id="ft-tagvals-return-info" tab1="RESP2" tab2="RESP3" >}}
One of the following:
-tab-sep-
One of the following:
{{< /multitabs >}}
[FT.CREATE]({{< relref "commands/ft.create/" >}})