Skip to content

Commit

Permalink
Updates version to fix BWC for SearchSourceBuilder
Browse files Browse the repository at this point in the history
Signed-off-by: Owais <owaiskazi19@gmail.com>
  • Loading branch information
owaiskazi19 committed Sep 26, 2024
1 parent daf1669 commit 157a2aa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down Expand Up @@ -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);
}
}
Expand Down

0 comments on commit 157a2aa

Please sign in to comment.