Apache Lucene open-source search software
clarify that DateField will not be removed soon, despite being deprecated
Daniel Naber2cc6c7f64afd
diff --git a/CHANGES.txt b/CHANGES.txtindex 6f6f939a590..516efb903c2 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -55,17 +55,17 @@ New features(adapted from code contributed by Matt Quail; committed by Erik)12. FuzzyQuery can no longer throw a TooManyClauses exception. If a- FuzzyQuery expands to more than BooleanQuery.maxClauseCount- terms only the BooleanQuery.maxClauseCount most similar terms- go into the rewritten query and thus the exception is avoided.- (Christoph)+ FuzzyQuery expands to more than BooleanQuery.maxClauseCount+ terms only the BooleanQuery.maxClauseCount most similar terms+ go into the rewritten query and thus the exception is avoided.+ (Christoph)API Changes1. Several methods and fields have been deprecated. The API documentationcontains information about the recommended replacements. It is planned- that the deprecated methods and fields will be removed in Lucene 2.0.- (Daniel Naber)+ that most of the deprecated methods and fields will be removed in+ Lucene 2.0. (Daniel Naber)2. The Russian and the German analyzers have been moved to Sandbox.Also, the WordlistLoader class has been moved one level up in the@@ -79,7 +79,6 @@ API Changes4. Add a serializable Parameter Class to standardize parameter enumclasses in BooleanClause and Field. (Christoph)-Bug fixesdiff --git a/src/java/org/apache/lucene/document/DateField.java b/src/java/org/apache/lucene/document/DateField.javaindex 627b7652c15..02a2c1bf7e6 100644--- a/src/java/org/apache/lucene/document/DateField.java+++ b/src/java/org/apache/lucene/document/DateField.java@@ -37,7 +37,9 @@ import org.apache.lucene.search.RangeQuery; // for javadoc* indexed when using this class. See {@link DateTools} for an* alternative without such a limitation.*- * @deprecated Use {@link DateTools} instead.+ * @deprecated If you build a new index, use {@link DateTools} instead. For+ * existing indices you can continue using this class, as it will not be+ * removed in the near future despite being deprecated.*/public class DateField {