If you want to increase the maximum search thread pool queue size from the default 1000 to for instance 2000, just add the following to your elasticsearch.yml file
thread_pool.search.max_queue_size: 2000
and then restart the node for the setting to take effect. Repeat on the other nodes in the cluster.