public final class Version extends Object
WARNING: When changing the version parameter that you supply to components in Lucene, do not simply change the version at search-time, but instead also adjust your indexing code to match, and re-index.
Modifier and Type | Field and Description |
---|---|
int |
bugfix
Bugfix number, incremented on release branches
|
static Version |
LATEST
WARNING: if you use this setting, and then
upgrade to a newer release of Lucene, sizable changes
may happen.
|
static Version |
LUCENE_3_0
Deprecated.
Bad naming of constant; use
LUCENE_3_0_0 instead. |
static Version |
LUCENE_3_0_0
Deprecated.
(4.0) Use latest
|
static Version |
LUCENE_3_1
Deprecated.
Bad naming of constant; use
LUCENE_3_1_0 instead. |
static Version |
LUCENE_3_1_0
Deprecated.
(4.0) Use latest
|
static Version |
LUCENE_3_2
Deprecated.
Bad naming of constant; use
LUCENE_3_2_0 instead. |
static Version |
LUCENE_3_2_0
Deprecated.
(4.0) Use latest
|
static Version |
LUCENE_3_3
Deprecated.
Bad naming of constant; use
LUCENE_3_3_0 instead. |
static Version |
LUCENE_3_3_0
Deprecated.
(4.0) Use latest
|
static Version |
LUCENE_3_4
Deprecated.
Bad naming of constant; use
LUCENE_3_4_0 instead. |
static Version |
LUCENE_3_4_0
Deprecated.
(4.0) Use latest
|
static Version |
LUCENE_3_5
Deprecated.
Bad naming of constant; use
LUCENE_3_5_0 instead. |
static Version |
LUCENE_3_5_0
Deprecated.
(4.0) Use latest
|
static Version |
LUCENE_3_6
Deprecated.
Bad naming of constant; use
LUCENE_3_6_0 instead. |
static Version |
LUCENE_3_6_0
Deprecated.
(4.0) Use latest
|
static Version |
LUCENE_30
Deprecated.
Bad naming of constant; use
LUCENE_3_0_0 instead. |
static Version |
LUCENE_31
Deprecated.
Bad naming of constant; use
LUCENE_3_1_0 instead. |
static Version |
LUCENE_32
Deprecated.
Bad naming of constant; use
LUCENE_3_2_0 instead. |
static Version |
LUCENE_33
Deprecated.
Bad naming of constant; use
LUCENE_3_3_0 instead. |
static Version |
LUCENE_34
Deprecated.
Bad naming of constant; use
LUCENE_3_4_0 instead. |
static Version |
LUCENE_35
Deprecated.
Bad naming of constant; use
LUCENE_3_5_0 instead. |
static Version |
LUCENE_36
Deprecated.
Bad naming of constant; use
LUCENE_3_6_0 instead. |
static Version |
LUCENE_4_0
Deprecated.
Bad naming of constant; use
LUCENE_4_0_0 instead (this constant actually points to LUCENE_4_0_0_ALPHA to match whole 4.0 series). |
static Version |
LUCENE_4_0_0
Deprecated.
(4.1) Use latest
|
static Version |
LUCENE_4_0_0_ALPHA
Deprecated.
(4.1) Use latest
|
static Version |
LUCENE_4_0_0_BETA
Deprecated.
(4.1) Use latest
|
static Version |
LUCENE_4_1
Deprecated.
Bad naming of constant; use
LUCENE_4_1_0 instead. |
static Version |
LUCENE_4_1_0
Deprecated.
(4.2) Use latest
|
static Version |
LUCENE_4_10_0
Deprecated.
Use latest
|
static Version |
LUCENE_4_10_1
Deprecated.
Use latest
|
static Version |
LUCENE_4_10_2
Match settings and bugs in Lucene's 4.10.2 release.
|
static Version |
LUCENE_4_2
Deprecated.
Bad naming of constant; use
LUCENE_4_2_0 instead. |
static Version |
LUCENE_4_2_0
Deprecated.
(4.3) Use latest
|
static Version |
LUCENE_4_2_1
Deprecated.
(4.3) Use latest
|
static Version |
LUCENE_4_3
Deprecated.
Bad naming of constant; use
LUCENE_4_3_0 instead. |
static Version |
LUCENE_4_3_0
Deprecated.
(4.4) Use latest
|
static Version |
LUCENE_4_3_1
Deprecated.
(4.6) Use latest
|
static Version |
LUCENE_4_4
Deprecated.
Bad naming of constant; use
LUCENE_4_4_0 instead. |
static Version |
LUCENE_4_4_0
Deprecated.
(4.7) Use latest
|
static Version |
LUCENE_4_5
Deprecated.
Bad naming of constant; use
LUCENE_4_5_0 instead. |
static Version |
LUCENE_4_5_0
Deprecated.
(5.0) Use latest
|
static Version |
LUCENE_4_5_1
Deprecated.
(5.0) Use latest
|
static Version |
LUCENE_4_6
Deprecated.
Bad naming of constant; use
LUCENE_4_6_0 instead. |
static Version |
LUCENE_4_6_0
Deprecated.
(5.0) Use latest
|
static Version |
LUCENE_4_6_1
Deprecated.
(5.0) Use latest
|
static Version |
LUCENE_4_7
Deprecated.
Bad naming of constant; use
LUCENE_4_7_0 instead. |
static Version |
LUCENE_4_7_0
Deprecated.
(4.8) Use latest
|
static Version |
LUCENE_4_7_1
Deprecated.
(5.0) Use latest
|
static Version |
LUCENE_4_7_2
Deprecated.
(5.0) Use latest
|
static Version |
LUCENE_4_8
Deprecated.
Bad naming of constant; use
LUCENE_4_8_0 instead. |
static Version |
LUCENE_4_8_0
Deprecated.
(4.9) Use latest
|
static Version |
LUCENE_4_8_1
Deprecated.
(4.10) Use latest
|
static Version |
LUCENE_4_9
Deprecated.
Bad naming of constant; use
LUCENE_4_9_0 instead. |
static Version |
LUCENE_4_9_0
Deprecated.
(5.0) Use latest
|
static Version |
LUCENE_4_9_1
Deprecated.
(5.0) Use latest
|
static Version |
LUCENE_40
Deprecated.
Bad naming of constant; use
LUCENE_4_0_0 instead (this constant actually points to LUCENE_4_0_0_ALPHA to match whole 4.0 series). |
static Version |
LUCENE_41
Deprecated.
Bad naming of constant; use
LUCENE_4_1_0 instead. |
static Version |
LUCENE_42
Deprecated.
Bad naming of constant; use
LUCENE_4_2_0 instead. |
static Version |
LUCENE_43
Deprecated.
Bad naming of constant; use
LUCENE_4_3_0 instead. |
static Version |
LUCENE_44
Deprecated.
Bad naming of constant; use
LUCENE_4_4_0 instead. |
static Version |
LUCENE_45
Deprecated.
Bad naming of constant; use
LUCENE_4_5_0 instead. |
static Version |
LUCENE_46
Deprecated.
Bad naming of constant; use
LUCENE_4_6_0 instead. |
static Version |
LUCENE_47
Deprecated.
Bad naming of constant; use
LUCENE_4_7_0 instead. |
static Version |
LUCENE_48
Deprecated.
Bad naming of constant; use
LUCENE_4_8_0 instead. |
static Version |
LUCENE_CURRENT
Deprecated.
Use
LATEST |
int |
major
Major version, the difference between stable and trunk
|
int |
minor
Minor version, incremented within the stable branch
|
int |
prerelease
Prerelease version, currently 0 (alpha), 1 (beta), or 2 (final)
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
onOrAfter(Version other)
Returns true if this version is the same or after the version from the argument.
|
static Version |
parse(String version)
Parse a version number of the form
"major.minor.bugfix.prerelease" . |
static Version |
parseLeniently(String version)
Parse the given version number as a constant or dot based version.
|
String |
toString() |
@Deprecated public static final Version LUCENE_3_0_0
@Deprecated public static final Version LUCENE_3_1_0
@Deprecated public static final Version LUCENE_3_2_0
@Deprecated public static final Version LUCENE_3_3_0
@Deprecated public static final Version LUCENE_3_4_0
@Deprecated public static final Version LUCENE_3_5_0
@Deprecated public static final Version LUCENE_3_6_0
@Deprecated public static final Version LUCENE_4_0_0_ALPHA
@Deprecated public static final Version LUCENE_4_0_0_BETA
@Deprecated public static final Version LUCENE_4_0_0
@Deprecated public static final Version LUCENE_4_1_0
@Deprecated public static final Version LUCENE_4_2_0
@Deprecated public static final Version LUCENE_4_2_1
@Deprecated public static final Version LUCENE_4_3_0
@Deprecated public static final Version LUCENE_4_3_1
@Deprecated public static final Version LUCENE_4_4_0
@Deprecated public static final Version LUCENE_4_5_0
@Deprecated public static final Version LUCENE_4_5_1
@Deprecated public static final Version LUCENE_4_6_0
@Deprecated public static final Version LUCENE_4_6_1
@Deprecated public static final Version LUCENE_4_7_0
@Deprecated public static final Version LUCENE_4_7_1
@Deprecated public static final Version LUCENE_4_7_2
@Deprecated public static final Version LUCENE_4_8_0
@Deprecated public static final Version LUCENE_4_8_1
@Deprecated public static final Version LUCENE_4_9_0
@Deprecated public static final Version LUCENE_4_9_1
@Deprecated public static final Version LUCENE_4_10_0
@Deprecated public static final Version LUCENE_4_10_1
public static final Version LUCENE_4_10_2
public static final Version LATEST
WARNING: if you use this setting, and then upgrade to a newer release of Lucene, sizable changes may happen. If backwards compatibility is important then you should instead explicitly specify an actual version.
If you use this constant then you may need to re-index all of your documents when upgrading Lucene, as the way text is indexed may have changed. Additionally, you may need to re-test your entire application to ensure it behaves as expected, as some defaults may have changed and may break functionality in your application.
@Deprecated public static final Version LUCENE_CURRENT
LATEST
@Deprecated public static final Version LUCENE_30
LUCENE_3_0_0
instead.@Deprecated public static final Version LUCENE_31
LUCENE_3_1_0
instead.@Deprecated public static final Version LUCENE_32
LUCENE_3_2_0
instead.@Deprecated public static final Version LUCENE_33
LUCENE_3_3_0
instead.@Deprecated public static final Version LUCENE_34
LUCENE_3_4_0
instead.@Deprecated public static final Version LUCENE_35
LUCENE_3_5_0
instead.@Deprecated public static final Version LUCENE_36
LUCENE_3_6_0
instead.@Deprecated public static final Version LUCENE_40
LUCENE_4_0_0
instead (this constant actually points to LUCENE_4_0_0_ALPHA
to match whole 4.0 series).@Deprecated public static final Version LUCENE_41
LUCENE_4_1_0
instead.@Deprecated public static final Version LUCENE_42
LUCENE_4_2_0
instead.@Deprecated public static final Version LUCENE_43
LUCENE_4_3_0
instead.@Deprecated public static final Version LUCENE_44
LUCENE_4_4_0
instead.@Deprecated public static final Version LUCENE_45
LUCENE_4_5_0
instead.@Deprecated public static final Version LUCENE_46
LUCENE_4_6_0
instead.@Deprecated public static final Version LUCENE_47
LUCENE_4_7_0
instead.@Deprecated public static final Version LUCENE_48
LUCENE_4_8_0
instead.@Deprecated public static final Version LUCENE_3_0
LUCENE_3_0_0
instead.@Deprecated public static final Version LUCENE_3_1
LUCENE_3_1_0
instead.@Deprecated public static final Version LUCENE_3_2
LUCENE_3_2_0
instead.@Deprecated public static final Version LUCENE_3_3
LUCENE_3_3_0
instead.@Deprecated public static final Version LUCENE_3_4
LUCENE_3_4_0
instead.@Deprecated public static final Version LUCENE_3_5
LUCENE_3_5_0
instead.@Deprecated public static final Version LUCENE_3_6
LUCENE_3_6_0
instead.@Deprecated public static final Version LUCENE_4_0
LUCENE_4_0_0
instead (this constant actually points to LUCENE_4_0_0_ALPHA
to match whole 4.0 series).@Deprecated public static final Version LUCENE_4_1
LUCENE_4_1_0
instead.@Deprecated public static final Version LUCENE_4_2
LUCENE_4_2_0
instead.@Deprecated public static final Version LUCENE_4_3
LUCENE_4_3_0
instead.@Deprecated public static final Version LUCENE_4_4
LUCENE_4_4_0
instead.@Deprecated public static final Version LUCENE_4_5
LUCENE_4_5_0
instead.@Deprecated public static final Version LUCENE_4_6
LUCENE_4_6_0
instead.@Deprecated public static final Version LUCENE_4_7
LUCENE_4_7_0
instead.@Deprecated public static final Version LUCENE_4_8
LUCENE_4_8_0
instead.@Deprecated public static final Version LUCENE_4_9
LUCENE_4_9_0
instead.public final int major
public final int minor
public final int bugfix
public final int prerelease
public static Version parse(String version) throws ParseException
"major.minor.bugfix.prerelease"
.
Part ".bugfix"
and part ".prerelease"
are optional.
Note that this is forwards compatible: the parsed version does not have to exist as
a constant.ParseException
public static Version parseLeniently(String version) throws ParseException
This method allows to use "LUCENE_X_Y"
constant names,
or version numbers in the format "x.y.z"
.
ParseException
public boolean onOrAfter(Version other)
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.