Skip to content
This repository was archived by the owner on Apr 11, 2024. It is now read-only.

Commit 65debde

Browse files
authored
Update the BWC versions (post 1.x backport) (opensearch-project#2390)
Signed-off-by: Andriy Redko <[email protected]>
1 parent 919d180 commit 65debde

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/opensearch/index/query/functionscore/ScoreFunctionBuilder.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,15 @@ public ScoreFunctionBuilder() {}
6060
*/
6161
public ScoreFunctionBuilder(StreamInput in) throws IOException {
6262
weight = checkWeight(in.readOptionalFloat());
63-
if (in.getVersion().onOrAfter(Version.V_2_0_0)) {
63+
if (in.getVersion().onOrAfter(Version.V_1_3_0)) {
6464
functionName = in.readOptionalString();
6565
}
6666
}
6767

6868
@Override
6969
public final void writeTo(StreamOutput out) throws IOException {
7070
out.writeOptionalFloat(weight);
71-
if (out.getVersion().onOrAfter(Version.V_2_0_0)) {
71+
if (out.getVersion().onOrAfter(Version.V_1_3_0)) {
7272
out.writeOptionalString(functionName);
7373
}
7474
doWriteTo(out);

0 commit comments

Comments
 (0)