cpoerschke commented on code in PR #13635:
URL: https://github.com/apache/lucene/pull/13635#discussion_r1707422464


##########
lucene/core/src/java/org/apache/lucene/search/AbstractKnnVectorQuery.java:
##########
@@ -491,4 +580,44 @@ public int hashCode() {
           classHash(), contextIdentity, Arrays.hashCode(docs), 
Arrays.hashCode(scores));
     }
   }
+
+  private class TopDocsDISI extends DocIdSetIterator {
+    int idx = -1;
+    List<Integer> sortedDocIdList;
+
+    public TopDocsDISI(TopDocs topDocs) {
+      sortedDocIdList = new ArrayList<Integer>();

Review Comment:
   ```suggestion
         sortedDocIdList = new ArrayList<Integer>(topDocs.scoreDocs.length);
   ```



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

Reply via email to