Skip to content

Commit 73e11af

Browse files
retamsfroh
andauthored
Update version checks for backport (#17030)
Signed-off-by: Michael Froh <froh@amazon.com> Signed-off-by: Andriy Redko <andriy.redko@aiven.io> Co-authored-by: Michael Froh <froh@amazon.com>
1 parent fa4595c commit 73e11af

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

rest-api-spec/src/main/resources/rest-api-spec/test/search.aggregation/70_adjacency_matrix.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,12 @@ setup:
130130
---
131131
"Show only intersections":
132132
- skip:
133-
version: " - 2.99.99"
134-
reason: "show_only_intersecting was added in 3.0.0"
133+
version: " - 2.19.0"
134+
reason: "show_only_intersecting was added in 2.19.0"
135135
features: node_selector
136136
- do:
137137
node_selector:
138-
version: "3.0.0 - "
138+
version: "2.19.0 - "
139139
search:
140140
index: test
141141
rest_total_hits_as_int: true

server/src/main/java/org/opensearch/search/aggregations/bucket/adjacency/AdjacencyMatrixAggregationBuilder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ public AdjacencyMatrixAggregationBuilder(StreamInput in) throws IOException {
188188
super(in);
189189
int filtersSize = in.readVInt();
190190
separator = in.readString();
191-
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
191+
if (in.getVersion().onOrAfter(Version.V_2_19_0)) {
192192
showOnlyIntersecting = in.readBoolean();
193193
}
194194
filters = new ArrayList<>(filtersSize);
@@ -201,7 +201,7 @@ public AdjacencyMatrixAggregationBuilder(StreamInput in) throws IOException {
201201
protected void doWriteTo(StreamOutput out) throws IOException {
202202
out.writeVInt(filters.size());
203203
out.writeString(separator);
204-
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
204+
if (out.getVersion().onOrAfter(Version.V_2_19_0)) {
205205
out.writeBoolean(showOnlyIntersecting);
206206
}
207207
for (KeyedFilter keyedFilter : filters) {

0 commit comments

Comments
 (0)