Get field name in Query Suggest response

I have configured SearchProvider to show suggestions for 3 fields in SearchBox, but it can be quit difficult for user to understand meaning of these suggestions without some sort of "label". It would be very nice if I could display field name in addition to suggested value in suggestion dropdown.

For instance: <suggestion> (<fieldname>)

But I cant see that Query Suggestion API provides such metadata in response. Any tip on how to solve this?

Hi @ismarslomic!

Unfortunately, the Query Suggestion API only returns suggestions as a list of individual suggestions and does not return the name of the field that the suggestion was based on.

I'm sorry to say I don't think this is possible at the moment.

Thanks! Yeah, that would greatly increase the user experience if it was possible

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.