Available in: Redis Stack
Time complexity: O(N)
Returns the distinct set of values indexed in a Tag field.
This is useful if your tag indexes things like cities, categories, etc.
!!! warning "Limitations" There is no paging or sorting, the tags are not alphabetically sorted. This command only operates on Tag fields. The strings return lower-cased and stripped of whitespaces, but otherwise unchanged.
Array reply of all the distinct tags in the tag index.
FT.TAGVALS idx myTag
1) "Hello"
2) "World"