msokolov commented on code in PR #796: URL: https://github.com/apache/lucene/pull/796#discussion_r844449176
########## lucene/core/src/test/org/apache/lucene/util/hnsw/KnnGraphTester.java: ########## @@ -362,18 +367,19 @@ private void testSearch(Path indexPath, Path queryPath, Path outputPath, int[][] long cpuTimeStartNs; try (Directory dir = FSDirectory.open(indexPath); DirectoryReader reader = DirectoryReader.open(dir)) { + IndexSearcher searcher = new IndexSearcher(reader); numDocs = reader.maxDoc(); for (int i = 0; i < warmCount; i++) { // warm up targets.get(target); - results[i] = doKnnSearch(reader, KNN_FIELD, target, topK, fanout); + doKnnSearch(reader, KNN_FIELD, target, topK, fanout); Review Comment: Yes, that makes sense, I don't see why not -- 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