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

bf=if(tf(location,A),5,0)&bf=if(tf(location,B),3,0)

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


-Hoss

Mime
View raw message