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 Re: Overriding SloppySimScorer
Date Mon, 13 Feb 2012 13:33:30 GMT
On 13 Feb 2012, at 12:16, Robert Muir wrote:

> On Mon, Feb 13, 2012 at 6:39 AM, Alan Woodward
> <alan.woodward@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-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
> 


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