lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Woodward <alan.woodw...@romseysoftware.co.uk>
Subject Overriding SloppySimScorer
Date Mon, 13 Feb 2012 11:39:18 GMT
Hello,

I want to score span queries based on the simple presence or absence of a hit (I'm not interested
in Tf or Idf here), with a possible boost on specific spans.  I've already extended DefaultSimilarity
to deal with single terms.  From looking at the code it seems that I want to override TFIDFSimilary#sloppySimScorer
to return a custom SloppySimScorer instance.  However, this method has been declared final.
 Am I going about this the wrong way?  Or should the SimScorer methods on TDIDFSimilarity
be unfinalized?

I'm using Lucene trunk, r1241355.

Thanks,

Alan Woodward
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message