params":{
: >"qq":"apple ipod",
: >"q":"{!boost b=$boost_func defType=dismax v=$qq}",
: >"debug":"query",
: >"qf":"name title",
: >"boost_func":"pow($boost_field,$boos
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
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=
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
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