You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Kevin Lee <kg...@yahoo.com.INVALID> on 2015/09/02 09:51:19 UTC

Using bq param for negative boost

Hi,

I’m trying to boost all results using the bq param with edismax where termA and termB do not appear in the field, but if phraseC appears it doesn’t matter if termA and termB appear.

The following works and boosts everything that doesn’t have termA and termB in myField so the effect is that all documents with termA and termB are pushed to the bottom of the result list.

myField:(*:* -termA -termB)^10000

How would you add the second part where if phraseC is present, then termA and termB can be present?

Tried doing something like the following, but it is not working.

myField:(*:* ((-termA -termB) OR +”phraseC”))^10000

Thanks!