Autocomplete Highlighting


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!


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


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


1 Like