Autocomplete Highlighting

Hello,

I am building an autocomplete feature for my website and was wondering if it is possible to enable the highlighter in the FT.SUGGET command, the one that can be used in FT.SEARCH for the full text search engine.

So eg.: if I enter re the autocomplete will come back with redis and the re will be highlighted with tags I supplied.

Is there something I am missing or is it even possible?

Thanks very much in advance!

@drs

As per FT.SUGGET command definition as of now HIGHLIGHT feature is not supported.

FT.SUGGET {key} {prefix} [FUZZY] [WITHSCORES] [WITHPAYLOADS] [MAX num]

But once you have the response you can apply that logic at client side.

Regards,
Suyog

1 Like