Skip to content

Commit f34cdd7

Browse files
owaiskazi19hainenber
authored andcommitted
Updates version to fix BWC for SearchSourceBuilder (opensearch-project#16086)
Signed-off-by: Owais <[email protected]>
1 parent 817cfcd commit f34cdd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/opensearch/search/builder/SearchSourceBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ public SearchSourceBuilder(StreamInput in) throws IOException {
299299
derivedFields = in.readList(DerivedField::new);
300300
}
301301
}
302-
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
302+
if (in.getVersion().onOrAfter(Version.V_2_18_0)) {
303303
searchPipeline = in.readOptionalString();
304304
}
305305
}
@@ -382,7 +382,7 @@ public void writeTo(StreamOutput out) throws IOException {
382382
out.writeList(derivedFields);
383383
}
384384
}
385-
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
385+
if (out.getVersion().onOrAfter(Version.V_2_18_0)) {
386386
out.writeOptionalString(searchPipeline);
387387
}
388388
}

0 commit comments

Comments
 (0)