* 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:
parent
9c54b0b762
commit
24ffeac37c
|
@ -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));
|
||||
}
|
||||
|
||||
}),
|
||||
|
|
Loading…
Reference in New Issue