diff --git a/src/java/org/apache/lucene/index/TermEnum.java b/src/java/org/apache/lucene/index/TermEnum.java index ed26a999854..735ee9cde69 100644 --- a/src/java/org/apache/lucene/index/TermEnum.java +++ b/src/java/org/apache/lucene/index/TermEnum.java @@ -37,8 +37,6 @@ public abstract class TermEnum { /** Closes the enumeration to further activity, freeing resources. */ public abstract void close() throws IOException; -// Term Vector support - /** Skips terms to the first beyond the current whose value is * greater or equal to target.
Returns true iff there is such * an entry.
Behaves as if written:
@@ -52,6 +50,9 @@ public abstract class TermEnum { ** Some implementations *could* be considerably more efficient than a linear scan. * Check the implementation to be sure. + * @deprecated This method is not performant and will be removed in Lucene 3.0. + * Use {@link IndexReader#terms(Term)} to create a new TermEnum positioned at a + * given term. */ public boolean skipTo(Term target) throws IOException { do {