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?
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.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.