Skip to content

Apache Lucene open-source search software

update to TermEnum#skipTo javadoc

Mark Robert Miller4560d9da772d
diff --git a/src/java/org/apache/lucene/index/TermEnum.java b/src/java/org/apache/lucene/index/TermEnum.java
index b5963e6b2da..ed26a999854 100644
--- a/src/java/org/apache/lucene/index/TermEnum.java
+++ b/src/java/org/apache/lucene/index/TermEnum.java
@@ -50,7 +50,8 @@ public abstract class TermEnum {
* return true;
* }
* </pre>
- * Some implementations are considerably more efficient than that.
+ * Some implementations *could* be considerably more efficient than a linear scan.
+ * Check the implementation to be sure.
*/
public boolean skipTo(Term target) throws IOException {
do {