always use the max score across the shards in suggest response

This commit is contained in:
Simon Willnauer 2013-03-01 12:09:18 +01:00
parent 30075bb6f9
commit 9c3898900d
1 changed files with 1 additions and 0 deletions

View File

@ -513,6 +513,7 @@ public class Suggest implements Iterable<Suggest.Suggestion<? extends Entry<? ex
}
protected void mergeInto(Option otherOption) {
score = Math.max(score, otherOption.score);
}
@Override