Thanks! Even a bit late but it's really useful information!!

hossman wrote:
> 
> 
> Marc: I know it's been a while since you asked this question, but i didn't 
> see any reply ... in general the problem is that a "low" boost is stil la 
> boost, it can only improve the score of documents that match.
> 
> one way to fake a "negative boost" is to give a high boost to everything 
> that does *not* match.  This should do what you want...
> 
>       bq=(*:* -field_a:54^10000)
> 
> ...I can't remember if "bq" supports pure negative queries yet, if it does 
> then you can simplify that to bq=-field_a:54^10000
> 
> 
> On Mon, 11 May 2009, Marc Sturlese wrote:
> 
> : Hey there,
> : I would like to give very low boost to the docs that match field_a = 54.
> : I have tried
> : 
> : <str name="bq">field_a:54^0.00001</str>
> : 
> : but it's not working. In the opposite case, I mean to give hight boost
> : doing:
> : 
> : <str name="bq">field_a:54^10000</str>
> : 
> : it works perfect. I supose it is because I do the search in 6 fields and
> a     
> : summation is happening so.. even if I am seting boost to 0.00001 the sum
> : with other fields boost makes the bq to almost not take effect (and
> negative
> : boost is not allowed). Is that the reason? Any clue how could I reach my
> : goal?
> : 
> : Thanks in advance
> : -- 
> : View this message in context:
> http://www.nabble.com/about-boosting-queries...-tp23484208p23484208.html
> : Sent from the Solr - User mailing list archive at Nabble.com.
> : 
> 
> 
> 
> -Hoss
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/about-boosting-queries...-tp23484208p24108953.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to