Update Lucene to version 4.10.2
Version 4.10.2 includes a couple of bug fixes [1], but these are not necessarily needed by Gerrit. This update is needed because Elasticsearch 1.4.0 has a dependency on this version [2]. There is no change in the index format since 4.10.1 so we reuse the same version number for the Lucene backed change index. [1] http://lucene.apache.org/core/4_10_2/changes/Changes.html#v4.10.2.bug_fixes [2] http://mvnrepository.com/artifact/org.elasticsearch/elasticsearch/1.4.0 Change-Id: Ie47dd2238493da44659c73c7f97f0caa2f7fdfa4
This commit is contained in:
@@ -144,6 +144,10 @@ public class LuceneChangeIndex implements ChangeIndex {
|
||||
Version lucene48 = Version.LUCENE_48;
|
||||
@SuppressWarnings("deprecation")
|
||||
Version lucene410 = Version.LUCENE_4_10_0;
|
||||
// We are using 4.10.2 but there is no difference in the index
|
||||
// format since 4.10.1, so we reuse the version here.
|
||||
@SuppressWarnings("deprecation")
|
||||
Version lucene4101 = Version.LUCENE_4_10_1;
|
||||
for (Map.Entry<Integer, Schema<ChangeData>> e
|
||||
: ChangeSchemas.ALL.entrySet()) {
|
||||
if (e.getKey() <= 3) {
|
||||
@@ -159,7 +163,7 @@ public class LuceneChangeIndex implements ChangeIndex {
|
||||
} else if (e.getKey() <= 13) {
|
||||
versions.put(e.getValue(), lucene410);
|
||||
} else {
|
||||
versions.put(e.getValue(), Version.LUCENE_4_10_1);
|
||||
versions.put(e.getValue(), lucene4101);
|
||||
}
|
||||
}
|
||||
LUCENE_VERSIONS = versions.build();
|
||||
|
Reference in New Issue
Block a user