nbartkow / macademia

Automatically exported from code.google.com/p/macademia
0 stars 0 forks source link

SimilarInterest show up multiple times in mongo #37

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Take a look at the similar interests for gendercommunication (id 6066):
    0.3012 gendercommunication (id 10173)
    0.3012 gendercommunication (8522)
    0.3012 gendercommunication (7179)
    0.3012 gendercommunication (5479)
    0.3012 gendercommunication (5223)
    0.3012 gendercommunication (5005)
    0.0656 globalgendersystemsandhierarchies (3703)
    0.0656 genderinequality (11786)
    0.0656 genderinequality (10135)
    0.0648 maleengagement (10637)
    0.0648 maleengagement (8986)
    0.0648 maleengagement (7643)
    0.0648 maleengagement (6530)

I think this happens because similarity scores are truncated when inserted into 
mongo, and SimilarInterest's compareTo pays attention to the similarity scores. 
 Maybe the solution is to truncate similarity scores in compareTo, or have a 
truncate flag?

Original issue reported on code.google.com by shi...@gmail.com on 27 May 2011 at 3:02

GoogleCodeExporter commented 8 years ago

Original comment by shi...@gmail.com on 27 Jun 2011 at 1:42