shubhamvishu commented on code in PR #12799:
URL: https://github.com/apache/lucene/pull/12799#discussion_r1400609546


##########
lucene/core/src/java/org/apache/lucene/codecs/lucene99/Lucene99HnswVectorsFormat.java:
##########
@@ -160,12 +160,12 @@ public Lucene99HnswVectorsFormat(int maxConn, int 
beamWidth) {
    * @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.
    * @param numMergeWorkers number of workers (threads) that will be used when 
doing merge. If
-   *     larger than 1, a non-null {@link ExecutorService} must be passed as 
mergeExec
-   * @param mergeExec the {@link ExecutorService} that will be used by ALL 
vector writers that are
+   *     larger than 1, a non-null {@link TaskExecutor} must be passed as 
mergeExec
+   * @param mergeExec the {@link TaskExecutor} that will be used by ALL vector 
writers that are
    *     generated by this format to do the merge
    */
   public Lucene99HnswVectorsFormat(
-      int maxConn, int beamWidth, int numMergeWorkers, ExecutorService 
mergeExec) {
+      int maxConn, int beamWidth, int numMergeWorkers, TaskExecutor mergeExec) 
{

Review Comment:
   @javanna Totally makes sense to me! I have addressed your comment in the 
latest commit. Please have a look. Thanks!
   
   > The idea would be that we use TaskExecutor for general task execution, and 
that is used in different places like query rewrite, search against slices, 
loading of terms statistics, and now also building the graph.
   
   +1 to extend TE capabilities and use it for all concurrency use cases.



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