zhaih commented on code in PR #12651:
URL: https://github.com/apache/lucene/pull/12651#discussion_r1360084970


##########
lucene/core/src/java/org/apache/lucene/util/hnsw/HnswGraphSearcher.java:
##########
@@ -284,6 +285,13 @@ int graphNextNeighbor(HnswGraph graph) throws IOException {
     return graph.nextNeighbor();
   }
 
+  private static int getGraphSize(HnswGraph graph) {
+    if (graph instanceof OnHeapHnswGraph) {

Review Comment:
   I renamed it to `maxNodeId` and default it to `size() -1` in `HnswGraph`



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