Skip to content

Commit

Permalink
Updates version to fix BWC for SearchSourceBuilder (opensearch-projec…
Browse files Browse the repository at this point in the history
…t#16086)

Signed-off-by: Owais <[email protected]>
owaiskazi19 authored Sep 26, 2024
1 parent 007d1b9 commit 7caca26
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -299,7 +299,7 @@ public SearchSourceBuilder(StreamInput in) throws IOException {
derivedFields = in.readList(DerivedField::new);
}
}
if (in.getVersion().onOrAfter(Version.V_3_0_0)) {
if (in.getVersion().onOrAfter(Version.V_2_18_0)) {
searchPipeline = in.readOptionalString();
}
}
@@ -382,7 +382,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeList(derivedFields);
}
}
if (out.getVersion().onOrAfter(Version.V_3_0_0)) {
if (out.getVersion().onOrAfter(Version.V_2_18_0)) {
out.writeOptionalString(searchPipeline);
}
}

0 comments on commit 7caca26

Please sign in to comment.