I am struggling to understand how to use the PAYLOAD functionality within the FT.SUGADD and FT.SUGGET commands.
When I add a suggestion with a payload using:
FT.SUGADD autocomplete “John Smith” 1.0 PAYLOAD “Aged 25”
And then try to retrieve this suggestion, the returned result does not change when I include the WITHPAYLOAD flag
FT.SUGGET autocomplete “John” WITHPAYLOAD -> “John Smith”
FT.SUGGET autocomplete “John” -> “John Smith”
I would like to attach a payload when adding suggestions (preferably an object containing multiple key value pairs) and have that returned with my FT.SUGGET call.
Is this possible? I’m not sure if I am doing this the wrong way.