The documentation here FT.CREATE | Redis suggests I can pass the WITHSUFFIXTRIE option for TAG type indexes, to optimize contains and suffix searches. However, there doesnt seem to be a way to perform contains and suffix searches on TAG indexes at all. The FT.CREATE command indeed allows me to pass WITHSUFFIXTRIE as an option for TAG.
Any help appreciated
Hi @neelesh,
You can search for contains and suffix using the usual syntax.
FT.CREATE idx SCHEMA t TAG WITHSUFFIXTRIE
HSET doc1 t world
FT.SEARCH idx @t:{*orl*}
FT.SEARCH idx @t:{*orld}