# Slice Scroll: Limit maximum results for search result

**URL:** <https://discuss.elastic.co/t/slice-scroll-limit-maximum-results-for-search-result/119526>\
**Category:** Elasticsearch\
**Created:** [February 12, 2018, 5:49pm UTC](https://discuss.elastic.co/t/slice-scroll-limit-maximum-results-for-search-result/119526 "2018-02-12T17:49:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![radleta](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/radleta/32/27653_2.png) [@radleta](https://discuss.elastic.co/u/radleta)\
**Post date:** [February 12, 2018, 5:49pm UTC](https://discuss.elastic.co/t/slice-scroll-limit-maximum-results-for-search-result/119526/1 "2018-02-12T17:49:02Z")

</div>

I'm trying to use the [Slice Scroll approach](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html#sliced-scroll) to parallel pull out a large volume of documents for a search. There does not appear to be a way to tell Elasticsearch to limit the results to the top X number of documents. The Slices appear to be for the entire results. This is due to the fact that the Size param is used to limit the batch size of the Scroll not the entire number of documents for search.

Is there something I'm missing about the Slice Scroll approach to limit the search results? Is there another technique to getting a large volume of documents in parallel out of Elasticsearch?

---

<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:** [March 12, 2018, 6:03pm UTC](https://discuss.elastic.co/t/slice-scroll-limit-maximum-results-for-search-result/119526/2 "2018-03-12T18:03:09Z")

</div>

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