@@ -110,13 +110,11 @@ public MatchQueryBuilder(StreamInput in) throws IOException {
110
110
super (in );
111
111
fieldName = in .readString ();
112
112
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 )) {
115
114
MatchQuery .Type .readFromStream (in ); // deprecated type
116
115
}
117
116
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 )) {
120
118
in .readVInt (); // deprecated slop
121
119
}
122
120
prefixLength = in .readVInt ();
@@ -139,13 +137,11 @@ public MatchQueryBuilder(StreamInput in) throws IOException {
139
137
protected void doWriteTo (StreamOutput out ) throws IOException {
140
138
out .writeString (fieldName );
141
139
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 )) {
144
141
MatchQuery .Type .BOOLEAN .writeTo (out ); // deprecated type
145
142
}
146
143
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 )) {
149
145
out .writeVInt (MatchQuery .DEFAULT_PHRASE_SLOP ); // deprecated slop
150
146
}
151
147
out .writeVInt (prefixLength );
0 commit comments