diff --git a/src/main/java/org/elasticsearch/Version.java b/src/main/java/org/elasticsearch/Version.java index 9d3fb4a5137..6c06e53e9fe 100644 --- a/src/main/java/org/elasticsearch/Version.java +++ b/src/main/java/org/elasticsearch/Version.java @@ -122,14 +122,16 @@ public class Version implements Serializable { public static final Version V_0_90_0 = new Version(V_0_90_0_ID, false, org.apache.lucene.util.Version.LUCENE_42); public static final int V_0_90_1_ID = /*00*/900199; public static final Version V_0_90_1 = new Version(V_0_90_1_ID, false, org.apache.lucene.util.Version.LUCENE_43); + public static final int V_0_90_2_ID = /*00*/900299; + public static final Version V_0_90_2 = new Version(V_0_90_2_ID, false, org.apache.lucene.util.Version.LUCENE_43); public static final int V_1_0_0_Beta1_ID = /*00*/1000001; public static final Version V_1_0_0_Beta1 = new Version(V_1_0_0_Beta1_ID, true, org.apache.lucene.util.Version.LUCENE_43); public static final Version CURRENT = V_1_0_0_Beta1; - + static { - assert CURRENT.luceneVersion == Lucene.VERSION: "Version must be upgraded to [" + Lucene.VERSION + "] is still set to [" + CURRENT.luceneVersion + "]"; + assert CURRENT.luceneVersion == Lucene.VERSION : "Version must be upgraded to [" + Lucene.VERSION + "] is still set to [" + CURRENT.luceneVersion + "]"; } public static Version readVersion(StreamInput in) throws IOException { @@ -141,6 +143,8 @@ public class Version implements Serializable { case V_1_0_0_Beta1_ID: return V_1_0_0_Beta1; + case V_0_90_2_ID: + return V_0_90_2; case V_0_90_1_ID: return V_0_90_1; case V_0_90_0_ID: