mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-14 08:55:19 +00:00
parent
f5641e61a2
commit
4e1d7baed0
@ -85,7 +85,7 @@ public final class CollapseTopFieldDocs extends TopFieldDocs {
|
||||
|
||||
/**
|
||||
* if we need to tie-break since score / sort value are the same we first compare shard index (lower shard wins)
|
||||
* and then iff shard index is the same we use the hit index.
|
||||
* and then if shard index is the same we use the hit index.
|
||||
*/
|
||||
static boolean tieBreakLessThan(ShardRef first, ScoreDoc firstDoc, ShardRef second, ScoreDoc secondDoc) {
|
||||
final int firstShardIndex = first.getShardIndex(firstDoc);
|
||||
|
Loading…
x
Reference in New Issue
Block a user