We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99f7c65 commit 674466cCopy full SHA for 674466c
server/src/main/java/org/elasticsearch/search/vectors/KnnSearchBuilder.java
@@ -601,7 +601,7 @@ public void writeTo(StreamOutput out) throws IOException {
601
out.writeVInt(k);
602
out.writeVInt(numCands);
603
if (out.getTransportVersion().onOrAfter(TransportVersions.VISIT_PERCENTAGE)) {
604
- out.writeFloat(visitPercentage);
+ out.writeOptionalFloat(visitPercentage);
605
}
606
if (out.getTransportVersion().onOrAfter(TransportVersions.V_8_14_0)) {
607
out.writeOptionalWriteable(queryVector);
0 commit comments