[KinoSearch] get doc/query similarity

jack_tanner at yahoo.com jack_tanner at yahoo.com
Sun Apr 20 20:45:08 PDT 2008



> From: Nathan Kurz <nate at verse.com>
> 
> >  $similarity = $doc1->get_cosine($doc2);
> >  $similarity = $doc1->get_similarity($doc2, $my_similarity_fxn);
> 
> I'm less happy with this approach.  This relates to my general feeling
> that the way to solve this problem is not by adding new interfaces,
> but by generalizing the scoring mechanism to allow alternative scorers
> like this one.  The 'right' solution would be to create a
> CosineScorer, and make it work with the existing infrastructure.
> Adding convenience methods to score individual documents would be
> great, but should be added to the Scorer (or Similarity? or Weight?)
> rather than to the Doc.

I can dig that.




      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ


_______________________________________________
KinoSearch mailing list
KinoSearch at rectangular.com
http://www.rectangular.com/mailman/listinfo/kinosearch




More information about the kinosearch mailing list