# Will Elasticsearch execute one query on multiple threads

**URL:** <https://discuss.elastic.co/t/will-elasticsearch-execute-one-query-on-multiple-threads/83551>\
**Category:** Elasticsearch\
**Created:** [April 25, 2017, 10:58am UTC](https://discuss.elastic.co/t/will-elasticsearch-execute-one-query-on-multiple-threads/83551 "2017-04-25T10:58:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Origin\_Jing](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/origin_jing/32/90877_2.png) [@Origin\_Jing](https://discuss.elastic.co/u/Origin_Jing)\
**Post date:** [April 25, 2017, 10:58am UTC](https://discuss.elastic.co/t/will-elasticsearch-execute-one-query-on-multiple-threads/83551/1 "2017-04-25T10:58:29Z")

</div>

I have a query that may need to run on multiple threads in parallel to speed the running up. But I don't know will Elasticsearch execute one query on multiple threads if possible by default or I need to use multiple threading client to send requests to Elasticsearch.

---

<div class="post-metadata">

**Author:** ![jasontedor](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jasontedor/32/66992_2.png) [@jasontedor](https://discuss.elastic.co/u/jasontedor)\
**Post date:** [April 25, 2017, 5:01pm UTC](https://discuss.elastic.co/t/will-elasticsearch-execute-one-query-on-multiple-threads/83551/2 "2017-04-25T17:01:30Z")

</div>

A query will be split up into shard-level queries. The shard-level queries will be executed concurrently. I hope that answers your question.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [May 23, 2017, 5:01pm UTC](https://discuss.elastic.co/t/will-elasticsearch-execute-one-query-on-multiple-threads/83551/3 "2017-05-23T17:01:32Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
