File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
server/src/main/java/org/elasticsearch/action/search Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -558,6 +558,8 @@ static void registerNodeSearchAction(
558
558
var transportService = searchTransportService .transportService ();
559
559
var threadPool = transportService .getThreadPool ();
560
560
final Dependencies dependencies = new Dependencies (searchService , threadPool .executor (ThreadPool .Names .SEARCH ));
561
+ // Even though not all searches run on the search pool, we use the search pool size as the upper limit of shards to execute in
562
+ // parallel to keep the implementation simple instead of working out the exact pool(s) a query will use up-front.
561
563
final int searchPoolMax = threadPool .info (ThreadPool .Names .SEARCH ).getMax ();
562
564
transportService .registerRequestHandler (
563
565
NODE_SEARCH_ACTION_NAME ,
You can’t perform that action at this time.
0 commit comments