: 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/