Skip to content

Commit 3d67915

Browse files
committed
#26720: Set the correct bwc version after backport to 6.0
1 parent 22e200e commit 3d67915

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

core/src/main/java/org/elasticsearch/index/query/MatchQueryBuilder.java

+4-8
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,11 @@ public MatchQueryBuilder(StreamInput in) throws IOException {
110110
super(in);
111111
fieldName = in.readString();
112112
value = in.readGenericValue();
113-
// TODO lower this version once this has been backported to 6.0.0
114-
if (in.getVersion().before(Version.V_7_0_0_alpha1)) {
113+
if (in.getVersion().before(Version.V_6_0_0_rc1)) {
115114
MatchQuery.Type.readFromStream(in); // deprecated type
116115
}
117116
operator = Operator.readFromStream(in);
118-
// TODO lower this version once this has been backported to 6.0.0
119-
if (in.getVersion().before(Version.V_7_0_0_alpha1)) {
117+
if (in.getVersion().before(Version.V_6_0_0_rc1)) {
120118
in.readVInt(); // deprecated slop
121119
}
122120
prefixLength = in.readVInt();
@@ -139,13 +137,11 @@ public MatchQueryBuilder(StreamInput in) throws IOException {
139137
protected void doWriteTo(StreamOutput out) throws IOException {
140138
out.writeString(fieldName);
141139
out.writeGenericValue(value);
142-
// TODO lower this version once this has been backported to 6.0.0
143-
if (out.getVersion().before(Version.V_7_0_0_alpha1)) {
140+
if (out.getVersion().before(Version.V_6_0_0_rc1)) {
144141
MatchQuery.Type.BOOLEAN.writeTo(out); // deprecated type
145142
}
146143
operator.writeTo(out);
147-
// TODO lower this version once this has been backported to 6.0.0
148-
if (out.getVersion().before(Version.V_7_0_0_alpha1)) {
144+
if (out.getVersion().before(Version.V_6_0_0_rc1)) {
149145
out.writeVInt(MatchQuery.DEFAULT_PHRASE_SLOP); // deprecated slop
150146
}
151147
out.writeVInt(prefixLength);

0 commit comments

Comments
 (0)