On 13 Feb 2012, at 12:16, Robert Muir wrote: > On Mon, Feb 13, 2012 at 6:39 AM, Alan Woodward > <alan.woodw...@romseysoftware.co.uk> wrote: >> Hello, >> >> (I'm not interested in Tf or Idf here) >> I've already extended DefaultSimilarity > > In this case, then extending DefaultSimilarity/TFIDFSimilarity is not > the best approach.
Ah yes, the clue's in the name, I suppose. :-) I've extended the base Similarity class instead, and that works. Thanks for your help. > >> Or should the SimScorer methods on TDIDFSimilarity be unfinalized? > > No, it must be final, because TFIDFSimilarity only exposes its > historical api: tf(), idf(), etc. > >> Am I going about this the wrong way? > > Maybe you should just extend Similarity... > > -- > lucidimagination.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org > For additional commands, e-mail: java-user-h...@lucene.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additional commands, e-mail: java-user-h...@lucene.apache.org