benwtrent commented on code in PR #12660: URL: https://github.com/apache/lucene/pull/12660#discussion_r1370023343
########## lucene/core/src/java/org/apache/lucene/codecs/lucene95/Lucene95HnswVectorsFormat.java: ########## @@ -146,18 +148,24 @@ public final class Lucene95HnswVectorsFormat extends KnnVectorsFormat { */ private final int beamWidth; + private final int mergeWorkers; + /** Constructs a format using default graph construction parameters */ public Lucene95HnswVectorsFormat() { this(DEFAULT_MAX_CONN, DEFAULT_BEAM_WIDTH); } + public Lucene95HnswVectorsFormat(int maxConn, int beamWidth) { + this(maxConn, beamWidth, DEFAULT_MERGE_WORKER); + } + /** * Constructs a format using the given graph construction parameters. * * @param maxConn the maximum number of connections to a node in the HNSW graph * @param beamWidth the size of the queue maintained during graph construction. */ - public Lucene95HnswVectorsFormat(int maxConn, int beamWidth) { + public Lucene95HnswVectorsFormat(int maxConn, int beamWidth, int mergeWorkers) { Review Comment: @zhaih I understand. We don't need to make the bigger move until we see the need for parallel merges elsewhere. But, I do think it should be an `ExecutorService` that is passed in here, not a number of workers. -- 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