msokolov commented on code in PR #926: URL: https://github.com/apache/lucene/pull/926#discussion_r905035144
########## lucene/core/src/java/org/apache/lucene/util/hnsw/HnswGraphBuilder.java: ########## @@ -246,7 +246,7 @@ private boolean diversityCheck( for (int i = 0; i < neighbors.size(); i++) { float neighborSimilarity = similarityFunction.compare(candidate, vectorValues.vectorValue(neighbors.node[i])); - if (neighborSimilarity >= score) { Review Comment: I don't think this change should make any difference at all - it's logically equivalent, isn't it? -- 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