On Apr 5, 2011, at 3:17 PM, Chris Hostetter wrote:

> one of the original use cases for bq was for artificial keyword boosting, 
> in which case it still comes in handy...
> 
> bq=meta:promote^100 text:new^10 category:featured^100 (*:* 
> -category:accessories)^10

Yeah I thought of this specific use-case. There are two issues with it though:
1. Each piece is still subject to the IDF component of the score, requiring me 
to make each individual category have a boost factoring that in.  For example, 
if I want meta:promote to be twice as boosted as category:featured, I can't 
simply boost the first to 2 and the second to 1 (the default) -- I have enable 
debugQuery and carefully skew them appropriately to what I want.  And the IDF 
might change as the data changes.
2. It still ads instead of multiplies which is always what I want. (should I 
not always want it?)

It's hard to actually avoid the IDF irrespective of which parameter you use.  
The only way I know to give a fielded query a constant score is a range query 
which is a total hack, e.g. meta:[promote TO promote] which you could then 
boost.  Ick!

~ David Smiley
Author: http://www.packtpub.com/solr-1-4-enterprise-search-server/




Reply via email to