Hi Ahmet, you are right, I have forgotten to mention the necessity of query parser change in my case. So just like you wrote previously something like:
<str name="q">_query_:"{!boost b=product(answeredStatus, articleType) v=$qq}"</str> added to the defaults section of request handler definition and referrencing qq instead of q in requests should do the deal. Thanks Ahmet. W dniu 2014-02-20 21:20:24 użytkownik Ahmet Arslan <iori...@yahoo.com> napisał: > Hi rainfall, > > bf is a (e)dismax query parser specific parameter. It seems that Peter is > using default lucene query parser. > > Ahmet > > > On Thursday, February 20, 2014 10:15 PM, rainfall83 <rainfal...@op.pl> wrote: > Hi Peter, > how about: > > <lst name="defaults"> > <str name="echoParams">explicit</str> > <str name="fl">*,score</str> > <str name="bf">product(answeredStatus, articleType)</str> > </lst> > <arr name="components"> > <str>collapse</str> > <str>facet</str> > <str>mlt</str> > <str>highlight</str> > <str>stats</str> > <str>debug</str> > </arr> > </requestHandler> > > ? > > W dniu 2014-02-20 20:20:08 użytkownik Peter Dodd <pd...@microsoft.com> > napisał: > > For my search I’ve established a boost function which enhances result > > ranking. In a query it looks something like: > > > > q={!boost b=product(answeredStatus, articleType)}connectivity > > > > I’d like to make this boost function a default for all others who use the > > search. My default search handler is configured like this in solrConfig.xml: > > > > <requestHandler class="solr.SearchHandler" name="standard" default="true"> > > <lst name="defaults"> > > <str name="echoParams">explicit</str> > > <str name="fl">*,score</str> > > </lst> > > <arr name="components"> > > <str>collapse</str> > > <str>facet</str> > > <str>mlt</str> > > <str>highlight</str> > > <str>stats</str> > > <str>debug</str> > > </arr> > > </requestHandler> > > > > Can I add the boost function as a default in here? > > > > Many thanks, > > Peter > > > > > > > > > > -- > > View this message in context: > > http://lucene.472066.n3.nabble.com/Can-set-a-boost-function-as-a-default-within-requesthandler-tp4118647.html > > Sent from the Solr - User mailing list archive at Nabble.com. > > >