Bump Lucene version to 6.6.5

We cannot skip major Lucene version and upgrade directly from 5 to 7,
because backwards codec compatibility layer only supports one major
release. To support online reindexing we have to do the upgrade to
Lucene 7 in two steps and wait for one gerrit release between the
Lucene version upgrades.

There are some removal and deprecation compared to current 5.5 version:

* IntField, LongField are deprecated and supposed to be replaced with
IntPoint and LongPoint. We use the deprecated Legacy<Foo> field types.
These types were moved to Solr distribution and could be used even in
the next major version 7.
* TrackingIndexWriter functionality has been folded into IndexWriter in
6.2. Its APIs now return a long sequence number which can be passed to
ControlledRealTimeReopenThread directly without TrackingIndexWriter
acting as a mediator.

Feature: Issue 7856
Change-Id: I25e8454e2b541eb5d8aac1e98d011c65b5e12240
This commit is contained in:
David Ostrovsky
2018-05-14 06:46:14 +02:00
parent 47032f3648
commit e9bcbadd5a
11 changed files with 75 additions and 53 deletions

View File

@@ -42,8 +42,12 @@ public class AccountSchemaDefinitions extends SchemaDefinitions<AccountState> {
@Deprecated static final Schema<AccountState> V7 = schema(V6, AccountField.PREFERRED_EMAIL_EXACT);
@Deprecated
static final Schema<AccountState> V8 = schema(V7, AccountField.NAME_PART_NO_SECONDARY_EMAIL);
// Bump Lucene version requires reindexing
static final Schema<AccountState> V9 = schema(V8);
public static final String NAME = "accounts";
public static final AccountSchemaDefinitions INSTANCE = new AccountSchemaDefinitions();

View File

@@ -96,7 +96,10 @@ public class ChangeSchemaDefinitions extends SchemaDefinitions<ChangeData> {
// Rename of star label 'mute' to 'reviewed' requires reindexing
@Deprecated static final Schema<ChangeData> V48 = schema(V47);
static final Schema<ChangeData> V49 = schema(V48);
@Deprecated static final Schema<ChangeData> V49 = schema(V48);
// Bump Lucene version requires reindexing
static final Schema<ChangeData> V50 = schema(V49);
public static final String NAME = "changes";
public static final ChangeSchemaDefinitions INSTANCE = new ChangeSchemaDefinitions();

View File

@@ -37,7 +37,10 @@ public class GroupSchemaDefinitions extends SchemaDefinitions<InternalGroup> {
@Deprecated
static final Schema<InternalGroup> V4 = schema(V3, GroupField.MEMBER, GroupField.SUBGROUP);
static final Schema<InternalGroup> V5 = schema(V4, GroupField.REF_STATE);
@Deprecated static final Schema<InternalGroup> V5 = schema(V4, GroupField.REF_STATE);
// Bump Lucene version requires reindexing
static final Schema<InternalGroup> V6 = schema(V5);
public static final GroupSchemaDefinitions INSTANCE = new GroupSchemaDefinitions();