title: Scroll example in ElasticSearch NEST API
body: <p>I am using .From() and .Size() methods to retrieve all documents from Elastic Search results. </p>
  
  <p>Below is sample example - </p>
  
  <pre class="lang-cs prettyprint-override"><code>ISearchResponse&lt;dynamic&gt; bResponse = ObjElasticClient.Search&lt;dynamic&gt;(s =&gt; s.From(0).Size(25000).Index("accounts").AllTypes().Query(Query));
  </code></pre>
  
  <p>Recently i came across scroll feature of Elastic Search. This looks better approach than From() and Size() methods specifically to fetch large data.</p>
  
  <p><a href="https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html" rel="noreferrer">https://www.elastic.co/guide/en/elasticsearch/reference/current/search-request-scroll.html</a> </p>
  
  <p>I looking for example on Scroll feature in NEST API.</p>
  
  <p>Can someone please provide NEST example?</p>
  
  <p>Thanks,
  Sameer </p>