Commit 6202ab0 1 parent 73e11af commit 6202ab0 Copy full SHA for 6202ab0
File tree 2 files changed +3
-3
lines changed
rest-api-spec/src/main/resources/rest-api-spec/test/search_shards
server/src/main/java/org/opensearch/action/admin/cluster/shards
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
" Search shards with slice specified in body " :
3
3
- skip :
4
- version : " - 2.99 .99"
4
+ version : " - 2.18 .99"
5
5
reason : " Added slice body to search_shards in 2.19"
6
6
- do :
7
7
indices.create :
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public ClusterSearchShardsRequest(StreamInput in) throws IOException {
80
80
preference = in .readOptionalString ();
81
81
82
82
indicesOptions = IndicesOptions .readIndicesOptions (in );
83
- if (in .getVersion ().onOrAfter (Version .V_3_0_0 )) {
83
+ if (in .getVersion ().onOrAfter (Version .V_2_19_0 )) {
84
84
boolean hasSlice = in .readBoolean ();
85
85
if (hasSlice ) {
86
86
sliceBuilder = new SliceBuilder (in );
@@ -95,7 +95,7 @@ public void writeTo(StreamOutput out) throws IOException {
95
95
out .writeOptionalString (routing );
96
96
out .writeOptionalString (preference );
97
97
indicesOptions .writeIndicesOptions (out );
98
- if (out .getVersion ().onOrAfter (Version .V_3_0_0 )) {
98
+ if (out .getVersion ().onOrAfter (Version .V_2_19_0 )) {
99
99
if (sliceBuilder != null ) {
100
100
out .writeBoolean (true );
101
101
sliceBuilder .writeTo (out );
You can’t perform that action at this time.
0 commit comments