# Can I combine scroll and preference?

**URL:** <https://discuss.elastic.co/t/can-i-combine-scroll-and-preference/205289>\
**Category:** Elasticsearch\
**Created:** [October 25, 2019, 3:04pm UTC](https://discuss.elastic.co/t/can-i-combine-scroll-and-preference/205289 "2019-10-25T15:04:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ndtreviv](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ndtreviv/32/22494_2.png) [@ndtreviv](https://discuss.elastic.co/u/ndtreviv)\
**Post date:** [October 25, 2019, 3:04pm UTC](https://discuss.elastic.co/t/can-i-combine-scroll-and-preference/205289/1 "2019-10-25T15:04:25Z")

</div>

I want to get all documents in one or more specific shards.

Can I combine scroll and preference (with a shard specification) to do this?  
If not, how would people recommend I achieve that in the best way that produces least load on the server?

Thanks!

---

<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:** [November 22, 2019, 3:04pm UTC](https://discuss.elastic.co/t/can-i-combine-scroll-and-preference/205289/2 "2019-11-22T15:04:34Z")

</div>

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