From 7e9d5ab768e13d2378822de19d94fdb39145971a Mon Sep 17 00:00:00 2001 From: Patrick Zhai Date: Fri, 3 Jun 2022 23:05:44 -0700 Subject: [PATCH] Revise javadoc of ExactPhraseMatcher#advancePosition (#944) --- .../src/java/org/apache/lucene/search/ExactPhraseMatcher.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lucene/core/src/java/org/apache/lucene/search/ExactPhraseMatcher.java b/lucene/core/src/java/org/apache/lucene/search/ExactPhraseMatcher.java index 36020c94203..b35f2d868dc 100644 --- a/lucene/core/src/java/org/apache/lucene/search/ExactPhraseMatcher.java +++ b/lucene/core/src/java/org/apache/lucene/search/ExactPhraseMatcher.java @@ -103,8 +103,8 @@ public final class ExactPhraseMatcher extends PhraseMatcher { } /** - * Advance the given pos enum to the first doc on or after {@code target}. Return {@code false} if - * the enum was exhausted before reaching {@code target} and {@code true} otherwise. + * Advance the given pos enum to the first position on or after {@code target}. Return {@code + * false} if the enum was exhausted before reaching {@code target} and {@code true} otherwise. */ private static boolean advancePosition(PostingsAndPosition posting, int target) throws IOException {