lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <hossman_luc...@fucit.org>
Subject Re: Negative Boosting documents with a certain word
Date Thu, 07 May 2015 17:43:54 GMT

: Right now, I specify the boost for my request handler as:
: <requestHandler name="/select" class="solr.SearchHandler">
:   .....
:   <str name="boost">ln(qty)</str>
:   ....
:  </requestHandler>
: 
: Is there a way to specify this boost in the Solrconfig.xml?
: 
: I tried: <str name="boost">(*:* -Refurbished)^10</str>   and I get the
: following exception: 
: 
: ERROR - 2015-05-01 15:13:41.609; org.apache.solr.common.SolrException;
: org.apache.solr.common.SolrException: org.apache.solr.search.SyntaxError:
: Expected identifier at pos 0 str='(*:* -Refurbished)^10'


thta's because the "boost" option on the edismax parser expects a 
function, not a query...

https://cwiki.apache.org/confluence/display/solr/The+Extended+DisMax+Query+Parser

try adding a "bq" param...

  <str name="bq">(*:* -Refurbished -foo -bar -baz)^10</str>



-Hoss
http://www.lucidworks.com/

Mime
View raw message