|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Version>
org.apache.lucene.util.Version
public enum Version
Use by certain classes to match version compatibility across releases of Lucene.
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.
Enum Constant Summary | |
---|---|
LUCENE_20
Match settings and bugs in Lucene's 2.0 release. |
|
LUCENE_21
Match settings and bugs in Lucene's 2.1 release. |
|
LUCENE_22
Match settings and bugs in Lucene's 2.2 release. |
|
LUCENE_23
Match settings and bugs in Lucene's 2.3 release. |
|
LUCENE_24
Match settings and bugs in Lucene's 2.4 release. |
|
LUCENE_29
Match settings and bugs in Lucene's 2.9 release. |
|
LUCENE_30
Match settings and bugs in Lucene's 3.0 release. |
|
LUCENE_CURRENT
Use this to get the latest & greatest settings, bug fixes, etc, for Lucene. |
Method Summary | |
---|---|
boolean |
onOrAfter(Version other)
|
static Version |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Version[] |
values()
Returns an array containing the constants of this enum type, in the order they're declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final Version LUCENE_20
public static final Version LUCENE_21
public static final Version LUCENE_22
public static final Version LUCENE_23
public static final Version LUCENE_24
public static final Version LUCENE_29
public static final Version LUCENE_30
public static final Version LUCENE_CURRENT
WARNING: if you use this setting, and then upgrade to a newer release of Lucene, sizable changes may happen. If precise back compatibility is important then you should instead explicitly specify an actual version.
Method Detail |
---|
public static final Version[] values()
for(Version c : Version.values()) System.out.println(c);
public static Version valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified namepublic boolean onOrAfter(Version other)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |