lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Lee <>
Subject Using bq param for negative boost
Date Wed, 02 Sep 2015 07:51:19 GMT

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

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

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

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

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

View raw message