File tree 2 files changed +4
-4
lines changed
server/src/main/java/org/opensearch
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ public TermsQueryBuilder(StreamInput in) throws IOException {
251
251
termsLookup = in .readOptionalWriteable (TermsLookup ::new );
252
252
values = (List <?>) in .readGenericValue ();
253
253
this .supplier = null ;
254
- if (in .getVersion ().onOrAfter (Version .V_3_0_0 )) {
254
+ if (in .getVersion ().onOrAfter (Version .V_2_17_0 )) {
255
255
valueType = in .readEnum (ValueType .class );
256
256
}
257
257
}
@@ -264,7 +264,7 @@ protected void doWriteTo(StreamOutput out) throws IOException {
264
264
out .writeString (fieldName );
265
265
out .writeOptionalWriteable (termsLookup );
266
266
out .writeGenericValue (values );
267
- if (out .getVersion ().onOrAfter (Version .V_3_0_0 )) {
267
+ if (out .getVersion ().onOrAfter (Version .V_2_17_0 )) {
268
268
out .writeEnum (valueType );
269
269
}
270
270
}
Original file line number Diff line number Diff line change @@ -87,7 +87,7 @@ public TermsLookup(StreamInput in) throws IOException {
87
87
path = in .readString ();
88
88
index = in .readString ();
89
89
routing = in .readOptionalString ();
90
- if (in .getVersion ().onOrAfter (Version .V_3_0_0 )) {
90
+ if (in .getVersion ().onOrAfter (Version .V_2_17_0 )) {
91
91
store = in .readBoolean ();
92
92
}
93
93
}
@@ -101,7 +101,7 @@ public void writeTo(StreamOutput out) throws IOException {
101
101
out .writeString (path );
102
102
out .writeString (index );
103
103
out .writeOptionalString (routing );
104
- if (out .getVersion ().onOrAfter (Version .V_3_0_0 )) {
104
+ if (out .getVersion ().onOrAfter (Version .V_2_17_0 )) {
105
105
out .writeBoolean (store );
106
106
}
107
107
}
You can’t perform that action at this time.
0 commit comments