# Multiple Indicies with limit

**URL:** https://discuss.elastic.co/t/multiple-indicies-with-limit/62742
**Category:** Elasticsearch
**Created:** [October 11, 2016, 6:16pm UTC](https://discuss.elastic.co/t/multiple-indicies-with-limit/62742 "2016-10-11T18:16:59Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![EuclideanSearch](https://avatars.discourse-cdn.com/v4/letter/e/c77e96/32.png) [@EuclideanSearch](https://discuss.elastic.co/u/EuclideanSearch)
#### Post date: [October 11, 2016, 6:16pm UTC](https://discuss.elastic.co/t/multiple-indicies-with-limit/62742/1 "2016-10-11T18:16:59Z")

</div>

Quick question. When a query is run on multiple indexes with a limit, does elasticsearch query all indexes simultaneously (and return only the given limit number of results)? Or does elasticsearch query the first index for the limit and then proceed to the next if not enough results are returned. I believe it is the former, but I cannot find the reference.

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [October 11, 2016, 11:50pm UTC](https://discuss.elastic.co/t/multiple-indicies-with-limit/62742/2 "2016-10-11T23:50:27Z")

</div>

You mean [https://www.elastic.co/guide/en/elasticsearch/reference/2.4/query-dsl-limit-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/2.4/query-dsl-limit-query.html)?

---

<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: [July 5, 2017, 10:13pm UTC](https://discuss.elastic.co/t/multiple-indicies-with-limit/62742/3 "2017-07-05T22:13:16Z")

</div>


