lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kevin Lee <kgle...@yahoo.com.INVALID>
Subject Using bq param for negative boost
Date Wed, 02 Sep 2015 07:51:19 GMT
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!
Mime
View raw message