* max(a,b) should work better because the match will be based on either SxE or Date but never both

This commit is contained in:
Reinhard Pointner 2010-10-24 17:37:06 +00:00
parent 9c54b0b762
commit 24ffeac37c
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ public enum MatchSimilarityMetric implements SimilarityMetric {
@Override
public float getSimilarity(Object o1, Object o2) {
return SeasonEpisode.getSimilarity(o1, o2) + AirDate.getSimilarity(o1, o2);
return Math.max(SeasonEpisode.getSimilarity(o1, o2), AirDate.getSimilarity(o1, o2));
}
}),