lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From escher2k <esche...@yahoo.com>
Subject Custom function...
Date Thu, 04 Jan 2007 02:59:04 GMT

Hi, 
  I am trying to create a linear function  to influence the similarity
computation. For example - 
if tf = 4, f(tf) = 150 * 1 + 150 * 0.3 
                    = 195 

The first occurrence is multiplied by 150. The next three occurrences are
mulitplied by 150 and 
divided by 10 (3/10). 

However, we don't have access to the field name in the function public float
tf(float freq). 
Is there any way out ? 

Thanks.
-- 
View this message in context: http://www.nabble.com/Custom-function...-tf2917408.html#a8153140
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message