Search: Fix spelling mistake in Javadoc (#34480)

"iff" -> "if".
This commit is contained in:
fonxian 2018-10-16 03:38:37 +08:00 committed by Nik Everett
parent f5641e61a2
commit 4e1d7baed0
1 changed files with 1 additions and 1 deletions

View File

@ -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) * 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) { static boolean tieBreakLessThan(ShardRef first, ScoreDoc firstDoc, ShardRef second, ScoreDoc secondDoc) {
final int firstShardIndex = first.getShardIndex(firstDoc); final int firstShardIndex = first.getShardIndex(firstDoc);