Skip to content

Commit 74f7a95

Browse files
committed
Introduced new transport versioning
1 parent 0449bc6 commit 74f7a95

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

server/src/main/java/org/elasticsearch/TransportVersions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ static TransportVersion def(int id) {
228228
public static final TransportVersion DENSE_VECTOR_OFF_HEAP_STATS = def(9_062_00_0);
229229
public static final TransportVersion RANDOM_SAMPLER_QUERY_BUILDER = def(9_063_0_00);
230230
public static final TransportVersion SETTINGS_IN_DATA_STREAMS = def(9_064_0_00);
231-
231+
public static final TransportVersion PINNED_RETRIEVER = def(9_065_0_00);
232232
/*
233233
* STOP! READ THIS FIRST! No, really,
234234
* ____ _____ ___ ____ _ ____ _____ _ ____ _____ _ _ ___ ____ _____ ___ ____ ____ _____ _

x-pack/plugin/search-business-rules/src/main/java/org/elasticsearch/xpack/searchbusinessrules/retriever/PinnedRankDoc.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
import org.elasticsearch.common.io.stream.StreamInput;
1212
import org.elasticsearch.common.io.stream.StreamOutput;
1313
import org.elasticsearch.search.rank.RankDoc;
14+
import org.elasticsearch.TransportVersion;
15+
import org.elasticsearch.TransportVersions;
1416

1517
import java.io.IOException;
1618
import java.util.Objects;
@@ -71,4 +73,9 @@ protected boolean doEquals(RankDoc rd) {
7173
protected int doHashCode() {
7274
return Objects.hash(super.doHashCode(), isPinned);
7375
}
76+
77+
@Override
78+
public TransportVersion getMinimalSupportedVersion() {
79+
return TransportVersions.PINNED_RETRIEVER;
80+
}
7481
}

0 commit comments

Comments
 (0)