zhaih commented on code in PR #12660:
URL: https://github.com/apache/lucene/pull/12660#discussion_r1369642741


##########
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:
   Yes Mike is also having the same comment, but I'm not very sure we want the 
setting to be in IWC because this is specifically for HNSW, and in future if we 
are going to have more KNN implmentation then this setting is not general 
enough to be in IWC?



-- 
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

Reply via email to