There is a payload attribute but I'm not sure if this can be used for such use case. Lets wait for others contributors to confirm. Similar question posted here: http://stackoverflow.com/questions/32434186/solr-suggestion-with-multiple-payloads .
If its just a category that you need then the work around(although not accurate one) that I can think of is to include the category value to the same field with pipe separation and extract from it? On Sun, Apr 3, 2016 at 11:41 AM, chandan khatri <chandankhat...@gmail.com> wrote: > Hi All, > > I've a query regarding autosuggestion. My use case is as below: > > 1. User enters product name (say Nokia) > 2. I want suggestions along with the category with which the product > belongs. (e.g Nokia belongs to "electronics" and "mobile" category) so I > want suggestion like Nokia in electronics and Nokia in mobile. > > I am able to get the suggestions using the OOTB AnalyzingInFixSuggester but > not sure how I can get the category along with the suggestion(can this > category be considered as facet of the suggestion??) > > Any help/pointer is highly appreciated. > > Thanks, > Chandan >