I'd like to boost every query using {!boost b=log(popularity)}. But I'd rather 
not have to prepend that to every query. It'd be much cleaner for me to 
configure Solr to use that as default.

My plan is to make DisMaxRequestHandler the default handler and add the 
following to solrconfig.xml:

<requestHandler name="dismax" class="solr.SearchHandler" default="true" >
    <lst name="defaults">
     <str name="defType">dismax</str>
     <str name="echoParams">explicit</str>
     <float name="tie">0.01</float>
     <str name="bf">
        log(popularity)
     </str>
    </lst>
</requestHandler>

Is this the correct way to do it?




      

Reply via email to