lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hostetter <>
Subject Re: edismax bq, ignore tf/idf?
Date Fri, 26 Oct 2012 23:20:04 GMT
: How about a boost function, "bf" or "boost"?
: bf=if(exists(query(location:A)),5,if(exists(query(location:B)),3,0))

Right ... assuming you only want to ignore tf/idf on these fields in this 
specifc context, function queries are the way to go -- otherwise you could 
just use a per-field similarity to ignore tf/idf.

I would suggest however that instead of using the "exists(query())" 
consider the "tf()" function ... 


s/bf/boost/g && s/0/1/g if you wnat mutiplicitive boosts.


View raw message