diff --git a/rest-api-spec/src/main/resources/rest-api-spec/test/search/230_interval_query.yml b/rest-api-spec/src/main/resources/rest-api-spec/test/search/230_interval_query.yml index 93e73764d8e92..0286d3caf66b8 100644 --- a/rest-api-spec/src/main/resources/rest-api-spec/test/search/230_interval_query.yml +++ b/rest-api-spec/src/main/resources/rest-api-spec/test/search/230_interval_query.yml @@ -44,8 +44,8 @@ setup: --- "Test regexp, explicit case sensitive": - skip: - version: " - 1.99.99" - reason: "case_insensitive introduced in 2.0" + version: " - 1.2.99" + reason: "case_insensitive introduced in 1.3" - do: search: index: test @@ -61,8 +61,8 @@ setup: --- "Test regexp, explicit case insensitive": - skip: - version: " - 1.99.99" - reason: "case_insensitive introduced in 2.0" + version: " - 1.2.99" + reason: "case_insensitive introduced in 1.3" - do: search: index: test diff --git a/server/src/main/java/org/opensearch/index/query/IntervalsSourceProvider.java b/server/src/main/java/org/opensearch/index/query/IntervalsSourceProvider.java index ab2e65b3b65c7..b53dfc32d7006 100644 --- a/server/src/main/java/org/opensearch/index/query/IntervalsSourceProvider.java +++ b/server/src/main/java/org/opensearch/index/query/IntervalsSourceProvider.java @@ -709,7 +709,7 @@ public Regexp(StreamInput in) throws IOException { this.flags = in.readVInt(); this.useField = in.readOptionalString(); this.maxExpansions = in.readOptionalVInt(); - if (in.getVersion().onOrAfter(Version.V_2_0_0)) { + if (in.getVersion().onOrAfter(Version.V_1_3_0)) { this.caseInsensitive = in.readBoolean(); } else { this.caseInsensitive = false; @@ -783,7 +783,7 @@ public void writeTo(StreamOutput out) throws IOException { out.writeVInt(flags); out.writeOptionalString(useField); out.writeOptionalVInt(maxExpansions); - if (out.getVersion().onOrAfter(Version.V_2_0_0)) { + if (out.getVersion().onOrAfter(Version.V_1_3_0)) { out.writeBoolean(caseInsensitive); } }