In the standard query parser, this means "remove all entries in which
field_a = 54".

> bq=-field_a:54^10000

Generally speaking, by convention boosts in Lucene have unity at 1.0,
not 0.0. So, a "negative boost" is usually done with boosts between 0
and 1. For this case, maybe a boost of 0.00001 is what you want?

On Mon, Feb 1, 2010 at 8:04 AM, Marc Sturlese <marc.sturl...@gmail.com> wrote:
>
> I already asked about this long ago but the answer doesn't seem to work...
> I am trying to set a negative query boost to send the results that match
> field_a: 54 to a lower position. I have tried it in 2 different ways:
>
> bq=(*:* -field_a:54^10000)
> bq=-field_a:54^10000
>
> None of them seem to work. What seems to happen is that results that match
> field_a:54 are excluded. Just like doing:
>
> fq=-field_a:54
>
> Any idea what could be happening? Has anyone experienced this behaviour
> before?
> Thnaks in advance
> --
> View this message in context: 
> http://old.nabble.com/weird-behabiour-when-setting-negative-boost-with-bq-using-dismax-tp27406614p27406614.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>
>



-- 
Lance Norskog
goks...@gmail.com

Reply via email to