always use the max score across the shards in suggest response
This commit is contained in:
parent
30075bb6f9
commit
9c3898900d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue