Skip to content

Apache Lucene open-source search software

javadocs

Han Jiang98c38acfe56d
diff --git a/lucene/core/src/java/org/apache/lucene/index/TermsEnum.java b/lucene/core/src/java/org/apache/lucene/index/TermsEnum.java
index ee6ca804115..3814bc64c0b 100644
--- a/lucene/core/src/java/org/apache/lucene/index/TermsEnum.java
+++ b/lucene/core/src/java/org/apache/lucene/index/TermsEnum.java
@@ -101,9 +101,8 @@ public abstract class TermsEnum implements BytesRefIterator {
* use this method. Low-level implementations may position the TermsEnum
* without re-seeking the term dictionary.
* <p>
- * Seeking by {@link TermState} should only be used iff the enum the state was
- * obtained from and the enum the state is used for seeking are obtained from
- * the same {@link IndexReader}.
+ * Seeking by {@link TermState} should only be used iff the state was obtained
+ * from the same {@link TermsEnum} instance.
* <p>
* NOTE: Using this method with an incompatible {@link TermState} might leave
* this {@link TermsEnum} in undefined state. On a segment level