Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
…2248)

Update the bwc versions for opensearch-project#2237 since it was backported to 1.3.

Signed-off-by: Matt Weber <matt@mattweber.org>
  • Loading branch information
mattweber authored Feb 25, 2022
1 parent d892c51 commit 9f6e2e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 9f6e2e5

Please sign in to comment.