zhaih commented on code in PR #12651: URL: https://github.com/apache/lucene/pull/12651#discussion_r1357261063
########## lucene/core/src/java/org/apache/lucene/util/hnsw/HnswGraphSearcher.java: ########## @@ -232,7 +231,6 @@ void searchLevel( graphSeek(graph, level, topCandidateNode); int friendOrd; while ((friendOrd = graphNextNeighbor(graph)) != NO_MORE_DOCS) { - assert friendOrd < size : "friendOrd=" + friendOrd + "; size=" + size; Review Comment: Same reason above, I'll update the way the searcher calculate the size -- 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