mirror of https://github.com/apache/lucene.git
LUCENE-2080: deprecate LUCENE_CURRENT
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@908975 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8dbd6e2870
commit
c0a1615db1
|
@ -50,20 +50,32 @@ public enum Version {
|
||||||
/** Match settings and bugs in Lucene's 3.0 release. */
|
/** Match settings and bugs in Lucene's 3.0 release. */
|
||||||
LUCENE_30,
|
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 & greatest settings, bug
|
||||||
|
* fixes, etc, for Lucene.
|
||||||
|
*/
|
||||||
LUCENE_31,
|
LUCENE_31,
|
||||||
|
|
||||||
/* Add new constants for later versions **here** to respect order! */
|
/* Add new constants for later versions **here** to respect order! */
|
||||||
|
|
||||||
/** Use this to get the latest & greatest settings, bug
|
/**
|
||||||
* fixes, etc, for Lucene.
|
|
||||||
*
|
|
||||||
* <p><b>WARNING</b>: if you use this setting, and then
|
* <p><b>WARNING</b>: if you use this setting, and then
|
||||||
* upgrade to a newer release of Lucene, sizable changes
|
* 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
|
* then you should instead explicitly specify an actual
|
||||||
* version.
|
* 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;
|
LUCENE_CURRENT;
|
||||||
|
|
||||||
public boolean onOrAfter(Version other) {
|
public boolean onOrAfter(Version other) {
|
||||||
|
|
Loading…
Reference in New Issue