public final enum

Version

extends Enum<E extends Enum<E>>
java.lang.Object
   ↳ java.lang.Enum<E extends java.lang.Enum<E>>
     ↳ org.apache.lucene.util.Version

Class Overview

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.

Summary

Enum Values
Version  LUCENE_20  Match settings and bugs in Lucene's 2.0 release. 
Version  LUCENE_21  Match settings and bugs in Lucene's 2.1 release. 
Version  LUCENE_22  Match settings and bugs in Lucene's 2.2 release. 
Version  LUCENE_23  Match settings and bugs in Lucene's 2.3 release. 
Version  LUCENE_24  Match settings and bugs in Lucene's 2.4 release. 
Version  LUCENE_29  Match settings and bugs in Lucene's 2.9 release. 
Version  LUCENE_30  Match settings and bugs in Lucene's 3.0 release. 
Version  LUCENE_CURRENT  This field is deprecated. Use an actual version instead.  
Public Methods
boolean onOrAfter(Version other)
static Version valueOf(String name)
final static Version[] values()
[Expand]
Inherited Methods
From class java.lang.Enum
From class java.lang.Object
From interface java.lang.Comparable

Enum Values

public static final Version LUCENE_20

Match settings and bugs in Lucene's 2.0 release.

public static final Version LUCENE_21

Match settings and bugs in Lucene's 2.1 release.

public static final Version LUCENE_22

Match settings and bugs in Lucene's 2.2 release.

public static final Version LUCENE_23

Match settings and bugs in Lucene's 2.3 release.

public static final Version LUCENE_24

Match settings and bugs in Lucene's 2.4 release.

public static final Version LUCENE_29

Match settings and bugs in Lucene's 2.9 release.

public static final Version LUCENE_30

Match settings and bugs in Lucene's 3.0 release.

Use this to get the latest & greatest settings, bug fixes, etc, for Lucene.

public static final Version LUCENE_CURRENT

This field is deprecated.
Use an actual version instead.

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.

Public Methods

public boolean onOrAfter (Version other)

public static Version valueOf (String name)

public static final Version[] values ()