Re: Dynamically change solr suggest field

2016-05-17 Thread Lasitha Wattaladeniya
Hi Alessandro, Yes, using suggester is the correct way of doing. But in our scenario we thought of going with the spellchecker component since we had some legacy setup. Our plan is to move to suggester later on. So far spellchecker component also does the needed work for us. Regards, Lasitha

Re: Dynamically change solr suggest field

2016-05-16 Thread Alessandro Benedetti
The scenario you described should be done with the suggester component. Nothing prevent you to configure multiple dictionaries for the suggester as well. The you pass the dictionary to the suggester at query time as a request parameter for your suggester request handler. Cheers On 16 May 2016

Re: Dynamically change solr suggest field

2016-05-16 Thread Abdel Belkasri
Clever and real cool. --Abdel On Sun, May 15, 2016 at 10:42 AM, Lasitha Wattaladeniya wrote: > Hello all, > > I found a way of doing this and thought of sharing this info with you. I > found a way to dynamically change the field which gives the suggestions. > It's using the

Re: Dynamically change solr suggest field

2016-05-15 Thread Lasitha Wattaladeniya
Hello all, I found a way of doing this and thought of sharing this info with you. I found a way to dynamically change the field which gives the suggestions. It's using the solr spellchecker (Not suggester). You can basically configure a indexed field as default *spellcheck.dictionary* in the

Re: Dynamically change solr suggest field

2016-05-11 Thread Lasitha Wattaladeniya
Hi Nick, Thanks for the reply. According to my requirement I can use only option one. I thought about that solution but I was bit lazy to implement that since I have many modules and solr cores. If I'm going to configure request handlers for each drop down value in each component it seems like a

Re: Dynamically change solr suggest field

2016-05-11 Thread Nick D
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

Dynamically change solr suggest field

2016-05-11 Thread Lasitha Wattaladeniya
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