Skip to content

Commit 65944f9

Browse files
committed
fixing transport validation
1 parent 03ac81e commit 65944f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/search/vectors/RescoreVectorBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ public RescoreVectorBuilder(StreamInput in) throws IOException {
5959
public void writeTo(StreamOutput out) throws IOException {
6060
// We don't want to serialize a `0` oversample to a node that doesn't know what to do with it.
6161
if (oversample == NO_OVERSAMPLE
62-
&& out.getTransportVersion().before(RESCORE_VECTOR_ALLOW_ZERO)
63-
&& (out.getTransportVersion().isPatchFrom(RESCORE_VECTOR_ALLOW_ZERO_BACKPORT_8_19) == false)) {
62+
&& (out.getTransportVersion().before(RESCORE_VECTOR_ALLOW_ZERO)
63+
|| (out.getTransportVersion().isPatchFrom(RESCORE_VECTOR_ALLOW_ZERO_BACKPORT_8_19) == false))) {
6464
throw new ElasticsearchStatusException(
6565
"[rescore_vector] does not support a 0 for ["
6666
+ OVERSAMPLE_FIELD.getPreferredName()

0 commit comments

Comments
 (0)