Updating Lucene version

This commit is contained in:
synhershko 2013-01-23 16:18:18 +02:00
parent a74e7f8099
commit e0f711a94a
1 changed files with 4 additions and 1 deletions

View File

@ -42,7 +42,7 @@ import java.lang.reflect.Field;
*/ */
public class Lucene { public class Lucene {
public static final Version VERSION = Version.LUCENE_40; public static final Version VERSION = Version.LUCENE_41;
public static final Version ANALYZER_VERSION = VERSION; public static final Version ANALYZER_VERSION = VERSION;
public static final Version QUERYPARSER_VERSION = VERSION; public static final Version QUERYPARSER_VERSION = VERSION;
@ -57,6 +57,9 @@ public class Lucene {
if (version == null) { if (version == null) {
return defaultVersion; return defaultVersion;
} }
if ("4.1".equals(version)) {
return Version.LUCENE_41;
}
if ("4.0".equals(version)) { if ("4.0".equals(version)) {
return Version.LUCENE_40; return Version.LUCENE_40;
} }