spike-liu commented on a change in pull request #676: URL: https://github.com/apache/lucene/pull/676#discussion_r805442207
########## File path: lucene/test-framework/src/java/org/apache/lucene/tests/index/BaseKnnVectorsFormatTestCase.java ########## @@ -929,6 +931,17 @@ private void add( iw.updateDocument(idTerm, doc); } + private int getVectorValuesSize(LeafReader reader, String field) throws IOException { + int size = 0; + VectorValues values = reader.getVectorValues(field); Review comment: The contract of DocIdSetIterator.java's cost() could not guarantee its accuracy. -- 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: issues-unsubscr...@lucene.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org For additional commands, e-mail: issues-h...@lucene.apache.org