LantaoJin commented on code in PR #16214:
URL: https://github.com/apache/lucene/pull/16214#discussion_r3377644647


##########
lucene/core/src/java/org/apache/lucene/index/BufferedUpdates.java:
##########
@@ -155,6 +159,15 @@ void addBinaryUpdate(BinaryDocValuesUpdate update, int 
docIDUpto) {
     numFieldUpdates.incrementAndGet();
   }
 
+  void addVectorUpdate(KnnVectorUpdate update, int docIDUpto) {
+    FieldUpdatesBuffer buffer =
+        vectorUpdates.computeIfAbsent(

Review Comment:
   The `FieldUpdatesBuffer ctor` already stores the initial update, so I now 
only call `addUpdate()` for subsequent updates to the same field.



-- 
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