lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Solr Wiki] Update of "SolrRelevancyFAQ" by ShalinMangar
Date Fri, 19 Jun 2009 11:35:59 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The following page has been changed by ShalinMangar:

The comment on the change is:
Added note on giving low boosts

      Use something of the form recip(rord(myfield),1,1000,1000)
+ == How do I give a very low boost to documents that match my query ==
+ In general the problem is that a "low" boost is still a 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. For example:
+        bq=(*:* -field_a:54^10000)
+ TODO: If "bq" supports pure negative queries then you can simplify that to bq=-field_a:54^10000
  == TODO ==
  /!\ :TODO: /!\
   * shorter fields score higher

View raw message