From 4e1d7baed0a1e2fa1fa17fe4479045d811f1e02e Mon Sep 17 00:00:00 2001 From: fonxian Date: Tue, 16 Oct 2018 03:38:37 +0800 Subject: [PATCH] Search: Fix spelling mistake in Javadoc (#34480) "iff" -> "if". --- .../org/apache/lucene/search/grouping/CollapseTopFieldDocs.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/java/org/apache/lucene/search/grouping/CollapseTopFieldDocs.java b/server/src/main/java/org/apache/lucene/search/grouping/CollapseTopFieldDocs.java index 4dba67abdeb..be2e91843ec 100644 --- a/server/src/main/java/org/apache/lucene/search/grouping/CollapseTopFieldDocs.java +++ b/server/src/main/java/org/apache/lucene/search/grouping/CollapseTopFieldDocs.java @@ -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);