jpountz commented on code in PR #992:
URL: https://github.com/apache/lucene/pull/992#discussion_r924655816


##########
lucene/backward-codecs/src/test/org/apache/lucene/backward_codecs/lucene91/Lucene91HnswVectorsWriter.java:
##########
@@ -149,6 +146,7 @@ public void writeField(FieldInfo fieldInfo, 
KnnVectorsReader knnVectorsReader)
       long vectorIndexLength = vectorIndex.getFilePointer() - 
vectorIndexOffset;
       writeMeta(
           fieldInfo,
+          maxDoc >= 0 ? maxDoc : segmentWriteState.segmentInfo.maxDoc(),

Review Comment:
   Right



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to