There are only two ways I can think of to accomplish this and neither of them are dynamically setting the suggester field as is looks according to the Doc (which does sometimes have lacking info so I might be wrong) you cannot set something like *suggest.fl=combo_box_field* at query time. But maybe they can help you get started.
1. Multiple suggester request handlers for each option in combo box. This way you just change the request handler in the query you submit based on the context. 2. Use copy fields to put all possible suggestions into same field name, so no more dynamic field settings, with another field defining whatever the option would be for that document out of the combo box and use context filters which can be passed at query time to limit the suggestions to those filtered by whats in the combo box. https://cwiki.apache.org/confluence/display/solr/Suggester#Suggester-ContextFiltering Hope this helps a bit Nick On Wed, May 11, 2016 at 7:05 AM, Lasitha Wattaladeniya <watt...@gmail.com> wrote: > Hello devs, > > I'm trying to implement auto complete text suggestions using solr. I have a > text box and next to that there's a combo box. So the auto complete should > suggest based on the value selected in the combo box. > > Basically I should be able to change the suggest field based on the value > selected in the combo box. I was trying to solve this problem whole day but > not much luck. Can anybody tell me is there a way of doing this ? > > Regards, > Lasitha. > > Lasitha Wattaladeniya > Software Engineer > > Mobile : +6593896893 > Blog : techreadme.blogspot.com >