|
@@ -46,95 +46,96 @@ public class Version implements Comparable<Version>, ToXContentFragment {
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
public static final int V_EMPTY_ID = 0;
|
|
public static final int V_EMPTY_ID = 0;
|
|
|
- public static final Version V_EMPTY = new Version(V_EMPTY_ID, org.apache.lucene.util.Version.LATEST);
|
|
|
|
|
- public static final Version V_7_0_0 = new Version(7_00_00_99, org.apache.lucene.util.Version.LUCENE_8_0_0);
|
|
|
|
|
- public static final Version V_7_0_1 = new Version(7_00_01_99, org.apache.lucene.util.Version.LUCENE_8_0_0);
|
|
|
|
|
- public static final Version V_7_1_0 = new Version(7_01_00_99, org.apache.lucene.util.Version.LUCENE_8_0_0);
|
|
|
|
|
- public static final Version V_7_1_1 = new Version(7_01_01_99, org.apache.lucene.util.Version.LUCENE_8_0_0);
|
|
|
|
|
- public static final Version V_7_2_0 = new Version(7_02_00_99, org.apache.lucene.util.Version.LUCENE_8_0_0);
|
|
|
|
|
- public static final Version V_7_2_1 = new Version(7_02_01_99, org.apache.lucene.util.Version.LUCENE_8_0_0);
|
|
|
|
|
- public static final Version V_7_3_0 = new Version(7_03_00_99, org.apache.lucene.util.Version.LUCENE_8_1_0);
|
|
|
|
|
- public static final Version V_7_3_1 = new Version(7_03_01_99, org.apache.lucene.util.Version.LUCENE_8_1_0);
|
|
|
|
|
- public static final Version V_7_3_2 = new Version(7_03_02_99, org.apache.lucene.util.Version.LUCENE_8_1_0);
|
|
|
|
|
- public static final Version V_7_4_0 = new Version(7_04_00_99, org.apache.lucene.util.Version.LUCENE_8_2_0);
|
|
|
|
|
- public static final Version V_7_4_1 = new Version(7_04_01_99, org.apache.lucene.util.Version.LUCENE_8_2_0);
|
|
|
|
|
- public static final Version V_7_4_2 = new Version(7_04_02_99, org.apache.lucene.util.Version.LUCENE_8_2_0);
|
|
|
|
|
- public static final Version V_7_5_0 = new Version(7_05_00_99, org.apache.lucene.util.Version.LUCENE_8_3_0);
|
|
|
|
|
- public static final Version V_7_5_1 = new Version(7_05_01_99, org.apache.lucene.util.Version.LUCENE_8_3_0);
|
|
|
|
|
- public static final Version V_7_5_2 = new Version(7_05_02_99, org.apache.lucene.util.Version.LUCENE_8_3_0);
|
|
|
|
|
- public static final Version V_7_6_0 = new Version(7_06_00_99, org.apache.lucene.util.Version.LUCENE_8_4_0);
|
|
|
|
|
- public static final Version V_7_6_1 = new Version(7_06_01_99, org.apache.lucene.util.Version.LUCENE_8_4_0);
|
|
|
|
|
- public static final Version V_7_6_2 = new Version(7_06_02_99, org.apache.lucene.util.Version.LUCENE_8_4_0);
|
|
|
|
|
- public static final Version V_7_7_0 = new Version(7_07_00_99, org.apache.lucene.util.Version.LUCENE_8_5_1);
|
|
|
|
|
- public static final Version V_7_7_1 = new Version(7_07_01_99, org.apache.lucene.util.Version.LUCENE_8_5_1);
|
|
|
|
|
- public static final Version V_7_8_0 = new Version(7_08_00_99, org.apache.lucene.util.Version.LUCENE_8_5_1);
|
|
|
|
|
- public static final Version V_7_8_1 = new Version(7_08_01_99, org.apache.lucene.util.Version.LUCENE_8_5_1);
|
|
|
|
|
- public static final Version V_7_9_0 = new Version(7_09_00_99, org.apache.lucene.util.Version.LUCENE_8_6_0);
|
|
|
|
|
- public static final Version V_7_9_1 = new Version(7_09_01_99, org.apache.lucene.util.Version.LUCENE_8_6_2);
|
|
|
|
|
- public static final Version V_7_9_2 = new Version(7_09_02_99, org.apache.lucene.util.Version.LUCENE_8_6_2);
|
|
|
|
|
- public static final Version V_7_9_3 = new Version(7_09_03_99, org.apache.lucene.util.Version.LUCENE_8_6_2);
|
|
|
|
|
- public static final Version V_7_10_0 = new Version(7_10_00_99, org.apache.lucene.util.Version.LUCENE_8_7_0);
|
|
|
|
|
- public static final Version V_7_10_1 = new Version(7_10_01_99, org.apache.lucene.util.Version.LUCENE_8_7_0);
|
|
|
|
|
- public static final Version V_7_10_2 = new Version(7_10_02_99, org.apache.lucene.util.Version.LUCENE_8_7_0);
|
|
|
|
|
- public static final Version V_7_11_0 = new Version(7_11_00_99, org.apache.lucene.util.Version.LUCENE_8_7_0);
|
|
|
|
|
- public static final Version V_7_11_1 = new Version(7_11_01_99, org.apache.lucene.util.Version.LUCENE_8_7_0);
|
|
|
|
|
- public static final Version V_7_11_2 = new Version(7_11_02_99, org.apache.lucene.util.Version.LUCENE_8_7_0);
|
|
|
|
|
- public static final Version V_7_12_0 = new Version(7_12_00_99, org.apache.lucene.util.Version.LUCENE_8_8_0);
|
|
|
|
|
- public static final Version V_7_12_1 = new Version(7_12_01_99, org.apache.lucene.util.Version.LUCENE_8_8_0);
|
|
|
|
|
- public static final Version V_7_13_0 = new Version(7_13_00_99, org.apache.lucene.util.Version.LUCENE_8_8_2);
|
|
|
|
|
- public static final Version V_7_13_1 = new Version(7_13_01_99, org.apache.lucene.util.Version.LUCENE_8_8_2);
|
|
|
|
|
- public static final Version V_7_13_2 = new Version(7_13_02_99, org.apache.lucene.util.Version.LUCENE_8_8_2);
|
|
|
|
|
- public static final Version V_7_13_3 = new Version(7_13_03_99, org.apache.lucene.util.Version.LUCENE_8_8_2);
|
|
|
|
|
- public static final Version V_7_13_4 = new Version(7_13_04_99, org.apache.lucene.util.Version.LUCENE_8_8_2);
|
|
|
|
|
- public static final Version V_7_14_0 = new Version(7_14_00_99, org.apache.lucene.util.Version.LUCENE_8_9_0);
|
|
|
|
|
- public static final Version V_7_14_1 = new Version(7_14_01_99, org.apache.lucene.util.Version.LUCENE_8_9_0);
|
|
|
|
|
- public static final Version V_7_14_2 = new Version(7_14_02_99, org.apache.lucene.util.Version.LUCENE_8_9_0);
|
|
|
|
|
- public static final Version V_7_15_0 = new Version(7_15_00_99, org.apache.lucene.util.Version.LUCENE_8_9_0);
|
|
|
|
|
- public static final Version V_7_15_1 = new Version(7_15_01_99, org.apache.lucene.util.Version.LUCENE_8_9_0);
|
|
|
|
|
- public static final Version V_7_15_2 = new Version(7_15_02_99, org.apache.lucene.util.Version.LUCENE_8_9_0);
|
|
|
|
|
- public static final Version V_7_16_0 = new Version(7_16_00_99, org.apache.lucene.util.Version.LUCENE_8_10_1);
|
|
|
|
|
- public static final Version V_7_16_1 = new Version(7_16_01_99, org.apache.lucene.util.Version.LUCENE_8_10_1);
|
|
|
|
|
- public static final Version V_7_16_2 = new Version(7_16_02_99, org.apache.lucene.util.Version.LUCENE_8_10_1);
|
|
|
|
|
- public static final Version V_7_16_3 = new Version(7_16_03_99, org.apache.lucene.util.Version.LUCENE_8_10_1);
|
|
|
|
|
- public static final Version V_7_17_0 = new Version(7_17_00_99, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
- public static final Version V_7_17_1 = new Version(7_17_01_99, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
- public static final Version V_7_17_2 = new Version(7_17_02_99, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
- public static final Version V_7_17_3 = new Version(7_17_03_99, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
- public static final Version V_7_17_4 = new Version(7_17_04_99, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
- public static final Version V_7_17_5 = new Version(7_17_05_99, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
- public static final Version V_7_17_6 = new Version(7_17_06_99, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
- public static final Version V_7_17_7 = new Version(7_17_07_99, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
- public static final Version V_7_17_8 = new Version(7_17_08_99, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
- public static final Version V_7_17_9 = new Version(7_17_09_99, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
- public static final Version V_8_0_0 = new Version(8_00_00_99, org.apache.lucene.util.Version.LUCENE_9_0_0);
|
|
|
|
|
- public static final Version V_8_0_1 = new Version(8_00_01_99, org.apache.lucene.util.Version.LUCENE_9_0_0);
|
|
|
|
|
- public static final Version V_8_1_0 = new Version(8_01_00_99, org.apache.lucene.util.Version.LUCENE_9_0_0);
|
|
|
|
|
- public static final Version V_8_1_1 = new Version(8_01_01_99, org.apache.lucene.util.Version.LUCENE_9_0_0);
|
|
|
|
|
- public static final Version V_8_1_2 = new Version(8_01_02_99, org.apache.lucene.util.Version.LUCENE_9_0_0);
|
|
|
|
|
- public static final Version V_8_1_3 = new Version(8_01_03_99, org.apache.lucene.util.Version.LUCENE_9_0_0);
|
|
|
|
|
- public static final Version V_8_2_0 = new Version(8_02_00_99, org.apache.lucene.util.Version.LUCENE_9_1_0);
|
|
|
|
|
- public static final Version V_8_2_1 = new Version(8_02_01_99, org.apache.lucene.util.Version.LUCENE_9_1_0);
|
|
|
|
|
- public static final Version V_8_2_2 = new Version(8_02_02_99, org.apache.lucene.util.Version.LUCENE_9_1_0);
|
|
|
|
|
- public static final Version V_8_2_3 = new Version(8_02_03_99, org.apache.lucene.util.Version.LUCENE_9_1_0);
|
|
|
|
|
- public static final Version V_8_3_0 = new Version(8_03_00_99, org.apache.lucene.util.Version.LUCENE_9_2_0);
|
|
|
|
|
- public static final Version V_8_3_1 = new Version(8_03_01_99, org.apache.lucene.util.Version.LUCENE_9_2_0);
|
|
|
|
|
- public static final Version V_8_3_2 = new Version(8_03_02_99, org.apache.lucene.util.Version.LUCENE_9_2_0);
|
|
|
|
|
- public static final Version V_8_3_3 = new Version(8_03_03_99, org.apache.lucene.util.Version.LUCENE_9_2_0);
|
|
|
|
|
- public static final Version V_8_4_0 = new Version(8_04_00_99, org.apache.lucene.util.Version.LUCENE_9_3_0);
|
|
|
|
|
- public static final Version V_8_4_1 = new Version(8_04_01_99, org.apache.lucene.util.Version.LUCENE_9_3_0);
|
|
|
|
|
- public static final Version V_8_4_2 = new Version(8_04_02_99, org.apache.lucene.util.Version.LUCENE_9_3_0);
|
|
|
|
|
- public static final Version V_8_4_3 = new Version(8_04_03_99, org.apache.lucene.util.Version.LUCENE_9_3_0);
|
|
|
|
|
- public static final Version V_8_5_0 = new Version(8_05_00_99, org.apache.lucene.util.Version.LUCENE_9_4_1);
|
|
|
|
|
- public static final Version V_8_5_1 = new Version(8_05_01_99, org.apache.lucene.util.Version.LUCENE_9_4_1);
|
|
|
|
|
- public static final Version V_8_5_2 = new Version(8_05_02_99, org.apache.lucene.util.Version.LUCENE_9_4_1);
|
|
|
|
|
- public static final Version V_8_5_3 = new Version(8_05_03_99, org.apache.lucene.util.Version.LUCENE_9_4_2);
|
|
|
|
|
- public static final Version V_8_6_0 = new Version(8_06_00_99, org.apache.lucene.util.Version.LUCENE_9_4_2);
|
|
|
|
|
- public static final Version V_8_6_1 = new Version(8_06_01_99, org.apache.lucene.util.Version.LUCENE_9_4_2);
|
|
|
|
|
- public static final Version V_8_7_0 = new Version(8_07_00_99, org.apache.lucene.util.Version.LUCENE_9_4_2);
|
|
|
|
|
|
|
+ public static final Version V_EMPTY = new Version(V_EMPTY_ID, TransportVersion.ZERO, org.apache.lucene.util.Version.LATEST);
|
|
|
|
|
+ public static final Version V_7_0_0 = new Version(7_00_00_99, TransportVersion.V_7_0_0, org.apache.lucene.util.Version.LUCENE_8_0_0);
|
|
|
|
|
+ public static final Version V_7_0_1 = new Version(7_00_01_99, TransportVersion.V_7_0_1, org.apache.lucene.util.Version.LUCENE_8_0_0);
|
|
|
|
|
+ public static final Version V_7_1_0 = new Version(7_01_00_99, TransportVersion.V_7_1_0, org.apache.lucene.util.Version.LUCENE_8_0_0);
|
|
|
|
|
+ public static final Version V_7_1_1 = new Version(7_01_01_99, TransportVersion.V_7_1_1, org.apache.lucene.util.Version.LUCENE_8_0_0);
|
|
|
|
|
+ public static final Version V_7_2_0 = new Version(7_02_00_99, TransportVersion.V_7_2_0, org.apache.lucene.util.Version.LUCENE_8_0_0);
|
|
|
|
|
+ public static final Version V_7_2_1 = new Version(7_02_01_99, TransportVersion.V_7_2_1, org.apache.lucene.util.Version.LUCENE_8_0_0);
|
|
|
|
|
+ public static final Version V_7_3_0 = new Version(7_03_00_99, TransportVersion.V_7_3_0, org.apache.lucene.util.Version.LUCENE_8_1_0);
|
|
|
|
|
+ public static final Version V_7_3_1 = new Version(7_03_01_99, TransportVersion.V_7_3_1, org.apache.lucene.util.Version.LUCENE_8_1_0);
|
|
|
|
|
+ public static final Version V_7_3_2 = new Version(7_03_02_99, TransportVersion.V_7_3_2, org.apache.lucene.util.Version.LUCENE_8_1_0);
|
|
|
|
|
+ public static final Version V_7_4_0 = new Version(7_04_00_99, TransportVersion.V_7_4_0, org.apache.lucene.util.Version.LUCENE_8_2_0);
|
|
|
|
|
+ public static final Version V_7_4_1 = new Version(7_04_01_99, TransportVersion.V_7_4_1, org.apache.lucene.util.Version.LUCENE_8_2_0);
|
|
|
|
|
+ public static final Version V_7_4_2 = new Version(7_04_02_99, TransportVersion.V_7_4_2, org.apache.lucene.util.Version.LUCENE_8_2_0);
|
|
|
|
|
+ public static final Version V_7_5_0 = new Version(7_05_00_99, TransportVersion.V_7_5_0, org.apache.lucene.util.Version.LUCENE_8_3_0);
|
|
|
|
|
+ public static final Version V_7_5_1 = new Version(7_05_01_99, TransportVersion.V_7_5_1, org.apache.lucene.util.Version.LUCENE_8_3_0);
|
|
|
|
|
+ public static final Version V_7_5_2 = new Version(7_05_02_99, TransportVersion.V_7_5_2, org.apache.lucene.util.Version.LUCENE_8_3_0);
|
|
|
|
|
+ public static final Version V_7_6_0 = new Version(7_06_00_99, TransportVersion.V_7_6_0, org.apache.lucene.util.Version.LUCENE_8_4_0);
|
|
|
|
|
+ public static final Version V_7_6_1 = new Version(7_06_01_99, TransportVersion.V_7_6_1, org.apache.lucene.util.Version.LUCENE_8_4_0);
|
|
|
|
|
+ public static final Version V_7_6_2 = new Version(7_06_02_99, TransportVersion.V_7_6_2, org.apache.lucene.util.Version.LUCENE_8_4_0);
|
|
|
|
|
+ public static final Version V_7_7_0 = new Version(7_07_00_99, TransportVersion.V_7_7_0, org.apache.lucene.util.Version.LUCENE_8_5_1);
|
|
|
|
|
+ public static final Version V_7_7_1 = new Version(7_07_01_99, TransportVersion.V_7_7_1, org.apache.lucene.util.Version.LUCENE_8_5_1);
|
|
|
|
|
+ public static final Version V_7_8_0 = new Version(7_08_00_99, TransportVersion.V_7_8_0, org.apache.lucene.util.Version.LUCENE_8_5_1);
|
|
|
|
|
+ public static final Version V_7_8_1 = new Version(7_08_01_99, TransportVersion.V_7_8_1, org.apache.lucene.util.Version.LUCENE_8_5_1);
|
|
|
|
|
+ public static final Version V_7_9_0 = new Version(7_09_00_99, TransportVersion.V_7_9_0, org.apache.lucene.util.Version.LUCENE_8_6_0);
|
|
|
|
|
+ public static final Version V_7_9_1 = new Version(7_09_01_99, TransportVersion.V_7_9_1, org.apache.lucene.util.Version.LUCENE_8_6_2);
|
|
|
|
|
+ public static final Version V_7_9_2 = new Version(7_09_02_99, TransportVersion.V_7_9_2, org.apache.lucene.util.Version.LUCENE_8_6_2);
|
|
|
|
|
+ public static final Version V_7_9_3 = new Version(7_09_03_99, TransportVersion.V_7_9_3, org.apache.lucene.util.Version.LUCENE_8_6_2);
|
|
|
|
|
+ public static final Version V_7_10_0 = new Version(7_10_00_99, TransportVersion.V_7_10_0, org.apache.lucene.util.Version.LUCENE_8_7_0);
|
|
|
|
|
+ public static final Version V_7_10_1 = new Version(7_10_01_99, TransportVersion.V_7_10_1, org.apache.lucene.util.Version.LUCENE_8_7_0);
|
|
|
|
|
+ public static final Version V_7_10_2 = new Version(7_10_02_99, TransportVersion.V_7_10_2, org.apache.lucene.util.Version.LUCENE_8_7_0);
|
|
|
|
|
+ public static final Version V_7_11_0 = new Version(7_11_00_99, TransportVersion.V_7_11_0, org.apache.lucene.util.Version.LUCENE_8_7_0);
|
|
|
|
|
+ public static final Version V_7_11_1 = new Version(7_11_01_99, TransportVersion.V_7_11_1, org.apache.lucene.util.Version.LUCENE_8_7_0);
|
|
|
|
|
+ public static final Version V_7_11_2 = new Version(7_11_02_99, TransportVersion.V_7_11_2, org.apache.lucene.util.Version.LUCENE_8_7_0);
|
|
|
|
|
+ public static final Version V_7_12_0 = new Version(7_12_00_99, TransportVersion.V_7_12_0, org.apache.lucene.util.Version.LUCENE_8_8_0);
|
|
|
|
|
+ public static final Version V_7_12_1 = new Version(7_12_01_99, TransportVersion.V_7_12_1, org.apache.lucene.util.Version.LUCENE_8_8_0);
|
|
|
|
|
+ public static final Version V_7_13_0 = new Version(7_13_00_99, TransportVersion.V_7_13_0, org.apache.lucene.util.Version.LUCENE_8_8_2);
|
|
|
|
|
+ public static final Version V_7_13_1 = new Version(7_13_01_99, TransportVersion.V_7_13_1, org.apache.lucene.util.Version.LUCENE_8_8_2);
|
|
|
|
|
+ public static final Version V_7_13_2 = new Version(7_13_02_99, TransportVersion.V_7_13_2, org.apache.lucene.util.Version.LUCENE_8_8_2);
|
|
|
|
|
+ public static final Version V_7_13_3 = new Version(7_13_03_99, TransportVersion.V_7_13_3, org.apache.lucene.util.Version.LUCENE_8_8_2);
|
|
|
|
|
+ public static final Version V_7_13_4 = new Version(7_13_04_99, TransportVersion.V_7_13_4, org.apache.lucene.util.Version.LUCENE_8_8_2);
|
|
|
|
|
+ public static final Version V_7_14_0 = new Version(7_14_00_99, TransportVersion.V_7_14_0, org.apache.lucene.util.Version.LUCENE_8_9_0);
|
|
|
|
|
+ public static final Version V_7_14_1 = new Version(7_14_01_99, TransportVersion.V_7_14_1, org.apache.lucene.util.Version.LUCENE_8_9_0);
|
|
|
|
|
+ public static final Version V_7_14_2 = new Version(7_14_02_99, TransportVersion.V_7_14_2, org.apache.lucene.util.Version.LUCENE_8_9_0);
|
|
|
|
|
+ public static final Version V_7_15_0 = new Version(7_15_00_99, TransportVersion.V_7_15_0, org.apache.lucene.util.Version.LUCENE_8_9_0);
|
|
|
|
|
+ public static final Version V_7_15_1 = new Version(7_15_01_99, TransportVersion.V_7_15_1, org.apache.lucene.util.Version.LUCENE_8_9_0);
|
|
|
|
|
+ public static final Version V_7_15_2 = new Version(7_15_02_99, TransportVersion.V_7_15_2, org.apache.lucene.util.Version.LUCENE_8_9_0);
|
|
|
|
|
+ public static final Version V_7_16_0 = new Version(7_16_00_99, TransportVersion.V_7_16_0, org.apache.lucene.util.Version.LUCENE_8_10_1);
|
|
|
|
|
+ public static final Version V_7_16_1 = new Version(7_16_01_99, TransportVersion.V_7_16_1, org.apache.lucene.util.Version.LUCENE_8_10_1);
|
|
|
|
|
+ public static final Version V_7_16_2 = new Version(7_16_02_99, TransportVersion.V_7_16_2, org.apache.lucene.util.Version.LUCENE_8_10_1);
|
|
|
|
|
+ public static final Version V_7_16_3 = new Version(7_16_03_99, TransportVersion.V_7_16_3, org.apache.lucene.util.Version.LUCENE_8_10_1);
|
|
|
|
|
+ public static final Version V_7_17_0 = new Version(7_17_00_99, TransportVersion.V_7_17_0, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
+ public static final Version V_7_17_1 = new Version(7_17_01_99, TransportVersion.V_7_17_1, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
+ public static final Version V_7_17_2 = new Version(7_17_02_99, TransportVersion.V_7_17_2, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
+ public static final Version V_7_17_3 = new Version(7_17_03_99, TransportVersion.V_7_17_3, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
+ public static final Version V_7_17_4 = new Version(7_17_04_99, TransportVersion.V_7_17_4, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
+ public static final Version V_7_17_5 = new Version(7_17_05_99, TransportVersion.V_7_17_5, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
+ public static final Version V_7_17_6 = new Version(7_17_06_99, TransportVersion.V_7_17_6, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
+ public static final Version V_7_17_7 = new Version(7_17_07_99, TransportVersion.V_7_17_7, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
+ public static final Version V_7_17_8 = new Version(7_17_08_99, TransportVersion.V_7_17_8, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
+ public static final Version V_7_17_9 = new Version(7_17_09_99, TransportVersion.V_7_17_9, org.apache.lucene.util.Version.LUCENE_8_11_1);
|
|
|
|
|
+ public static final Version V_8_0_0 = new Version(8_00_00_99, TransportVersion.V_8_0_0, org.apache.lucene.util.Version.LUCENE_9_0_0);
|
|
|
|
|
+ public static final Version V_8_0_1 = new Version(8_00_01_99, TransportVersion.V_8_0_1, org.apache.lucene.util.Version.LUCENE_9_0_0);
|
|
|
|
|
+ public static final Version V_8_1_0 = new Version(8_01_00_99, TransportVersion.V_8_1_0, org.apache.lucene.util.Version.LUCENE_9_0_0);
|
|
|
|
|
+ public static final Version V_8_1_1 = new Version(8_01_01_99, TransportVersion.V_8_1_1, org.apache.lucene.util.Version.LUCENE_9_0_0);
|
|
|
|
|
+ public static final Version V_8_1_2 = new Version(8_01_02_99, TransportVersion.V_8_1_2, org.apache.lucene.util.Version.LUCENE_9_0_0);
|
|
|
|
|
+ public static final Version V_8_1_3 = new Version(8_01_03_99, TransportVersion.V_8_1_3, org.apache.lucene.util.Version.LUCENE_9_0_0);
|
|
|
|
|
+ public static final Version V_8_2_0 = new Version(8_02_00_99, TransportVersion.V_8_2_0, org.apache.lucene.util.Version.LUCENE_9_1_0);
|
|
|
|
|
+ public static final Version V_8_2_1 = new Version(8_02_01_99, TransportVersion.V_8_2_1, org.apache.lucene.util.Version.LUCENE_9_1_0);
|
|
|
|
|
+ public static final Version V_8_2_2 = new Version(8_02_02_99, TransportVersion.V_8_2_2, org.apache.lucene.util.Version.LUCENE_9_1_0);
|
|
|
|
|
+ public static final Version V_8_2_3 = new Version(8_02_03_99, TransportVersion.V_8_2_3, org.apache.lucene.util.Version.LUCENE_9_1_0);
|
|
|
|
|
+ public static final Version V_8_3_0 = new Version(8_03_00_99, TransportVersion.V_8_3_0, org.apache.lucene.util.Version.LUCENE_9_2_0);
|
|
|
|
|
+ public static final Version V_8_3_1 = new Version(8_03_01_99, TransportVersion.V_8_3_1, org.apache.lucene.util.Version.LUCENE_9_2_0);
|
|
|
|
|
+ public static final Version V_8_3_2 = new Version(8_03_02_99, TransportVersion.V_8_3_2, org.apache.lucene.util.Version.LUCENE_9_2_0);
|
|
|
|
|
+ public static final Version V_8_3_3 = new Version(8_03_03_99, TransportVersion.V_8_3_3, org.apache.lucene.util.Version.LUCENE_9_2_0);
|
|
|
|
|
+ public static final Version V_8_4_0 = new Version(8_04_00_99, TransportVersion.V_8_4_0, org.apache.lucene.util.Version.LUCENE_9_3_0);
|
|
|
|
|
+ public static final Version V_8_4_1 = new Version(8_04_01_99, TransportVersion.V_8_4_1, org.apache.lucene.util.Version.LUCENE_9_3_0);
|
|
|
|
|
+ public static final Version V_8_4_2 = new Version(8_04_02_99, TransportVersion.V_8_4_2, org.apache.lucene.util.Version.LUCENE_9_3_0);
|
|
|
|
|
+ public static final Version V_8_4_3 = new Version(8_04_03_99, TransportVersion.V_8_4_3, org.apache.lucene.util.Version.LUCENE_9_3_0);
|
|
|
|
|
+ public static final Version V_8_5_0 = new Version(8_05_00_99, TransportVersion.V_8_5_0, org.apache.lucene.util.Version.LUCENE_9_4_1);
|
|
|
|
|
+ public static final Version V_8_5_1 = new Version(8_05_01_99, TransportVersion.V_8_5_1, org.apache.lucene.util.Version.LUCENE_9_4_1);
|
|
|
|
|
+ public static final Version V_8_5_2 = new Version(8_05_02_99, TransportVersion.V_8_5_2, org.apache.lucene.util.Version.LUCENE_9_4_1);
|
|
|
|
|
+ public static final Version V_8_5_3 = new Version(8_05_03_99, TransportVersion.V_8_5_3, org.apache.lucene.util.Version.LUCENE_9_4_2);
|
|
|
|
|
+ public static final Version V_8_5_4 = new Version(8_05_04_99, TransportVersion.V_8_5_4, org.apache.lucene.util.Version.LUCENE_9_4_2);
|
|
|
|
|
+ public static final Version V_8_6_0 = new Version(8_06_00_99, TransportVersion.V_8_6_0, org.apache.lucene.util.Version.LUCENE_9_4_2);
|
|
|
|
|
+ public static final Version V_8_6_1 = new Version(8_06_01_99, TransportVersion.V_8_6_1, org.apache.lucene.util.Version.LUCENE_9_4_2);
|
|
|
|
|
+ public static final Version V_8_7_0 = new Version(8_07_00_99, TransportVersion.V_8_7_0, org.apache.lucene.util.Version.LUCENE_9_4_2);
|
|
|
public static final Version CURRENT = V_8_7_0;
|
|
public static final Version CURRENT = V_8_7_0;
|
|
|
|
|
|
|
|
- private static final Map<Integer, Version> idToVersion;
|
|
|
|
|
- private static final Map<String, Version> stringToVersion;
|
|
|
|
|
|
|
+ private static final Map<Integer, Version> VERSION_IDS;
|
|
|
|
|
+ private static final Map<String, Version> VERSION_STRINGS;
|
|
|
|
|
|
|
|
static {
|
|
static {
|
|
|
final Map<Integer, Version> builder = new HashMap<>();
|
|
final Map<Integer, Version> builder = new HashMap<>();
|
|
@@ -179,8 +180,8 @@ public class Version implements Comparable<Version>, ToXContentFragment {
|
|
|
+ "]";
|
|
+ "]";
|
|
|
builder.put(V_EMPTY_ID, V_EMPTY);
|
|
builder.put(V_EMPTY_ID, V_EMPTY);
|
|
|
builderByString.put(V_EMPTY.toString(), V_EMPTY);
|
|
builderByString.put(V_EMPTY.toString(), V_EMPTY);
|
|
|
- idToVersion = Map.copyOf(builder);
|
|
|
|
|
- stringToVersion = Map.copyOf(builderByString);
|
|
|
|
|
|
|
+ VERSION_IDS = Map.copyOf(builder);
|
|
|
|
|
+ VERSION_STRINGS = Map.copyOf(builderByString);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public static Version readVersion(StreamInput in) throws IOException {
|
|
public static Version readVersion(StreamInput in) throws IOException {
|
|
@@ -188,7 +189,7 @@ public class Version implements Comparable<Version>, ToXContentFragment {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public static Version fromId(int id) {
|
|
public static Version fromId(int id) {
|
|
|
- final Version known = idToVersion.get(id);
|
|
|
|
|
|
|
+ final Version known = VERSION_IDS.get(id);
|
|
|
if (known != null) {
|
|
if (known != null) {
|
|
|
return known;
|
|
return known;
|
|
|
}
|
|
}
|
|
@@ -200,7 +201,7 @@ public class Version implements Comparable<Version>, ToXContentFragment {
|
|
|
// Our best guess is to use the same Lucene version as the previous
|
|
// Our best guess is to use the same Lucene version as the previous
|
|
|
// version in the list, assuming that it didn't change.
|
|
// version in the list, assuming that it didn't change.
|
|
|
List<Version> versions = DeclaredVersionsHolder.DECLARED_VERSIONS;
|
|
List<Version> versions = DeclaredVersionsHolder.DECLARED_VERSIONS;
|
|
|
- Version tmp = new Version(id, org.apache.lucene.util.Version.LATEST);
|
|
|
|
|
|
|
+ Version tmp = new Version(id, TransportVersion.CURRENT, org.apache.lucene.util.Version.LATEST);
|
|
|
int index = Collections.binarySearch(versions, tmp);
|
|
int index = Collections.binarySearch(versions, tmp);
|
|
|
if (index < 0) {
|
|
if (index < 0) {
|
|
|
index = -2 - index;
|
|
index = -2 - index;
|
|
@@ -216,7 +217,8 @@ public class Version implements Comparable<Version>, ToXContentFragment {
|
|
|
} else {
|
|
} else {
|
|
|
luceneVersion = versions.get(index).luceneVersion;
|
|
luceneVersion = versions.get(index).luceneVersion;
|
|
|
}
|
|
}
|
|
|
- return new Version(id, luceneVersion);
|
|
|
|
|
|
|
+ // TODO: assume this is an old version that has transport version == release version
|
|
|
|
|
+ return new Version(id, TransportVersion.fromId(id), luceneVersion);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
public static void writeVersion(Version version, StreamOutput out) throws IOException {
|
|
public static void writeVersion(Version version, StreamOutput out) throws IOException {
|
|
@@ -224,14 +226,14 @@ public class Version implements Comparable<Version>, ToXContentFragment {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * Returns the minimum version between the 2.
|
|
|
|
|
|
|
+ * Returns the minimum version of {@code version1} and {@code version2}
|
|
|
*/
|
|
*/
|
|
|
public static Version min(Version version1, Version version2) {
|
|
public static Version min(Version version1, Version version2) {
|
|
|
return version1.id < version2.id ? version1 : version2;
|
|
return version1.id < version2.id ? version1 : version2;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * Returns the maximum version between the 2
|
|
|
|
|
|
|
+ * Returns the maximum version of {@code version1} and {@code version2}
|
|
|
*/
|
|
*/
|
|
|
public static Version max(Version version1, Version version2) {
|
|
public static Version max(Version version1, Version version2) {
|
|
|
return version1.id > version2.id ? version1 : version2;
|
|
return version1.id > version2.id ? version1 : version2;
|
|
@@ -244,7 +246,7 @@ public class Version implements Comparable<Version>, ToXContentFragment {
|
|
|
if (Strings.hasLength(version) == false) {
|
|
if (Strings.hasLength(version) == false) {
|
|
|
return Version.CURRENT;
|
|
return Version.CURRENT;
|
|
|
}
|
|
}
|
|
|
- final Version cached = stringToVersion.get(version);
|
|
|
|
|
|
|
+ final Version cached = VERSION_STRINGS.get(version);
|
|
|
if (cached != null) {
|
|
if (cached != null) {
|
|
|
return cached;
|
|
return cached;
|
|
|
}
|
|
}
|
|
@@ -299,16 +301,18 @@ public class Version implements Comparable<Version>, ToXContentFragment {
|
|
|
public final byte minor;
|
|
public final byte minor;
|
|
|
public final byte revision;
|
|
public final byte revision;
|
|
|
public final byte build;
|
|
public final byte build;
|
|
|
|
|
+ public final TransportVersion transportVersion;
|
|
|
public final org.apache.lucene.util.Version luceneVersion;
|
|
public final org.apache.lucene.util.Version luceneVersion;
|
|
|
private final String toString;
|
|
private final String toString;
|
|
|
private final int previousMajorId;
|
|
private final int previousMajorId;
|
|
|
|
|
|
|
|
- Version(int id, org.apache.lucene.util.Version luceneVersion) {
|
|
|
|
|
|
|
+ Version(int id, TransportVersion transportVersion, org.apache.lucene.util.Version luceneVersion) {
|
|
|
this.id = id;
|
|
this.id = id;
|
|
|
this.major = (byte) ((id / 1000000) % 100);
|
|
this.major = (byte) ((id / 1000000) % 100);
|
|
|
this.minor = (byte) ((id / 10000) % 100);
|
|
this.minor = (byte) ((id / 10000) % 100);
|
|
|
this.revision = (byte) ((id / 100) % 100);
|
|
this.revision = (byte) ((id / 100) % 100);
|
|
|
this.build = (byte) (id % 100);
|
|
this.build = (byte) (id % 100);
|
|
|
|
|
+ this.transportVersion = Objects.requireNonNull(transportVersion);
|
|
|
this.luceneVersion = Objects.requireNonNull(luceneVersion);
|
|
this.luceneVersion = Objects.requireNonNull(luceneVersion);
|
|
|
this.toString = major + "." + minor + "." + revision;
|
|
this.toString = major + "." + minor + "." + revision;
|
|
|
this.previousMajorId = major > 0 ? (major - 1) * 1000000 + 99 : major;
|
|
this.previousMajorId = major > 0 ? (major - 1) * 1000000 + 99 : major;
|