# Scroll API

**URL:** <https://discuss.elastic.co/t/scroll-api/118816>\
**Category:** Elasticsearch\
**Created:** [February 7, 2018, 11:04am UTC](https://discuss.elastic.co/t/scroll-api/118816 "2018-02-07T11:04:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hassan\_Shaitou](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/hassan_shaitou/32/103867_2.png) [@Hassan\_Shaitou](https://discuss.elastic.co/u/Hassan_Shaitou)\
**Post date:** [February 7, 2018, 11:04am UTC](https://discuss.elastic.co/t/scroll-api/118816/1 "2018-02-07T11:04:17Z")

</div>

As far as I understand, Scroll API is used to handle response of more than 10000 documents, where you surpass the limit...

I am doing it with NEST C# package as follows:

```
var response = client.Search<JoinTestOneTwo>(s => s
					.Index(indices)
					.Type(types)
					.Scroll("1m")
					.MatchAll()
					.Pretty());
			var all_results = client.Scroll<JoinTestOneTwo>("1m",response.ScrollId);

				if (all_results.ApiCall.ResponseBodyInBytes != null)
				{
					var resp = System.Text.Encoding.UTF8.GetString(all_results.ApiCall.ResponseBodyInBytes);

					Console.WriteLine(resp);
				}

```

I am getting the same result of variable "response"...  
My question is how to collect more than 10000 documents in Elasticsearch ?  
Note: Using Elasticsearch 6.0.0 with NEST version 6.0.0-rc1

---

<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 7, 2018, 11:04am UTC](https://discuss.elastic.co/t/scroll-api/118816/2 "2018-03-07T11:04:34Z")

</div>

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