lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alan Woodward <>
Subject Overriding SloppySimScorer
Date Mon, 13 Feb 2012 11:39:18 GMT

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.


Alan Woodward
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message