Re: Dereferencing boost values?

2015-07-14 Thread Chris Hostetter
params":{ : >"qq":"apple ipod", : >"q":"{!boost b=$boost_func defType=dismax v=$qq}", : >"debug":"query", : >"qf":"name title", : >"boost_func":"pow($boost_field,$boos

Re: Dereferencing boost values?

2015-07-14 Thread Olivier Lebra
uot;pow($boost_field,$boost_factor)", "boost_factor":"2", "boost_field":"price"}}, : Date: Tue, 14 Jul 2015 21:58:36 +0100 : From: Upayavira : Reply-To: solr-user@lucene.apache.org : To: solr-user@lucene.apache.org : Subject: R

Re: Dereferencing boost values?

2015-07-14 Thread Chris Hostetter
or":"2", "boost_field":"price"}}, : Date: Tue, 14 Jul 2015 21:58:36 +0100 : From: Upayavira : Reply-To: solr-user@lucene.apache.org : To: solr-user@lucene.apache.org : Subject: Re: Dereferencing boost values? : : You could do : : q={!boost b=$b v=$qq} : qq=

Re: Dereferencing boost values?

2015-07-14 Thread Upayavira
You could do q={!boost b=$b v=$qq} qq=your query b=YOUR-FACTOR If what you want is to provide a value outside. Also, with later Solrs, you can use ${whatever} syntax in your main query, which might work for you too. Upayavira On Tue, Jul 14, 2015, at 09:28 PM, Olivier Lebra wrote: > Is there

Dereferencing boost values?

2015-07-14 Thread Olivier Lebra
Is there a way to do something like this: " bf=myfield^$myfactor " ? (Doesn't work, the boost value has to be a direct number) Thanks, Olivier