mayya-sharipova commented on code in PR #11743: URL: https://github.com/apache/lucene/pull/11743#discussion_r962070814
########## lucene/core/src/test/org/apache/lucene/util/TestRamUsageEstimator.java: ########## @@ -222,6 +229,33 @@ public void testPrintValues() { System.out.println("LONG_SIZE = " + LONG_SIZE); } + public void testHnswGraph() throws IOException { + int size = atLeast(2000); + int dim = randomIntBetween(100, 1024); + int M = randomIntBetween(4, 96); + VectorSimilarityFunction similarityFunction = + VectorSimilarityFunction.values()[ + random().nextInt(VectorSimilarityFunction.values().length - 1) + 1]; + VectorEncoding vectorEncoding; + if (similarityFunction == VectorSimilarityFunction.DOT_PRODUCT) { Review Comment: Thanks, good to know. I copied that part from another test in `TestHnswGraph`. I've corrected here as well in as in that test. Addressed in 2e01deab2e1678b4687250d22f62ad0cd6196bc9 -- 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