lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rm...@apache.org
Subject svn commit: r908975 - /lucene/java/trunk/src/java/org/apache/lucene/util/Version.java
Date Thu, 11 Feb 2010 13:58:29 GMT
Author: rmuir
Date: Thu Feb 11 13:58:22 2010
New Revision: 908975

URL: http://svn.apache.org/viewvc?rev=908975&view=rev
Log:
LUCENE-2080: deprecate LUCENE_CURRENT

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/util/Version.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/util/Version.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/util/Version.java?rev=908975&r1=908974&r2=908975&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/util/Version.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/util/Version.java Thu Feb 11 13:58:22 2010
@@ -50,20 +50,32 @@
   /** Match settings and bugs in Lucene's 3.0 release. */
   LUCENE_30,
 
-  /** Match settings and bugs in Lucene's 3.1 release. */
+  /** Match settings and bugs in Lucene's 3.1 release. 
+   *  <p>
+   *  Use this to get the latest &amp; greatest settings, bug
+   *  fixes, etc, for Lucene.
+   */
   LUCENE_31,
   
   /* Add new constants for later versions **here** to respect order! */
 
-  /** Use this to get the latest &amp; greatest settings, bug
-   *  fixes, etc, for Lucene.
-   *
+  /**
    * <p><b>WARNING</b>: if you use this setting, and then
    * upgrade to a newer release of Lucene, sizable changes
-   * may happen.  If precise back compatibility is important
+   * may happen.  If backwards compatibility is important
    * then you should instead explicitly specify an actual
    * version.
+   * <p>
+   * If you use this constant then you  may need to 
+   * <b>re-index all of your documents</b> when upgrading
+   * Lucene, as the way text is indexed may have changed. 
+   * Additionally, you may need to <b>re-test your entire
+   * application</b> to ensure it behaves as expected, as 
+   * some defaults may have changed and may break functionality 
+   * in your application. 
+   * @deprecated Use an actual version instead. 
    */
+  @Deprecated
   LUCENE_CURRENT;
 
   public boolean onOrAfter(Version other) {



Mime
View raw message