jpountz commented on code in PR #12806: URL: https://github.com/apache/lucene/pull/12806#discussion_r1394090752
########## lucene/core/src/java/org/apache/lucene/search/AbstractKnnVectorQuery.java: ########## @@ -110,6 +110,12 @@ private TopDocs getLeafResults(LeafReaderContext ctx, Weight filterWeight) throw int maxDoc = ctx.reader().maxDoc(); if (filterWeight == null) { + int cost = liveDocs == null ? maxDoc : liveDocs.length(); Review Comment: liveDocs.length() is always equal to `maxDoc` -- 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