From 324ee8cc96a436047898d780fede6256a2019480 Mon Sep 17 00:00:00 2001 From: Adrien Grand Date: Mon, 25 Sep 2017 17:06:16 +0200 Subject: [PATCH] Use the 6.6.1 Lucene version constant. (#26768) It is only possible since we moved to Lucene 7.0.0 GA. Previous snapshots did not know about it. --- core/src/main/java/org/elasticsearch/Version.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/org/elasticsearch/Version.java b/core/src/main/java/org/elasticsearch/Version.java index 00059c96ddd..022b10e18c7 100644 --- a/core/src/main/java/org/elasticsearch/Version.java +++ b/core/src/main/java/org/elasticsearch/Version.java @@ -93,11 +93,9 @@ public class Version implements Comparable { public static final int V_5_6_0_ID = 5060099; public static final Version V_5_6_0 = new Version(V_5_6_0_ID, org.apache.lucene.util.Version.LUCENE_6_6_0); public static final int V_5_6_1_ID = 5060199; - // TODO use proper Lucene constant once we are on a Lucene snapshot that knows about 6.6.1 - public static final Version V_5_6_1 = new Version(V_5_6_1_ID, org.apache.lucene.util.Version.fromBits(6, 6, 1)); + public static final Version V_5_6_1 = new Version(V_5_6_1_ID, org.apache.lucene.util.Version.LUCENE_6_6_1); public static final int V_5_6_2_ID = 5060299; - // TODO use proper Lucene constant once we are on a Lucene snapshot that knows about 6.6.1 - public static final Version V_5_6_2 = new Version(V_5_6_2_ID, org.apache.lucene.util.Version.fromBits(6, 6, 1)); + public static final Version V_5_6_2 = new Version(V_5_6_2_ID, org.apache.lucene.util.Version.LUCENE_6_6_1); public static final int V_6_0_0_alpha1_ID = 6000001; public static final Version V_6_0_0_alpha1 = new Version(V_6_0_0_alpha1_ID, org.apache.lucene.util.Version.LUCENE_7_0_0);