title: Elastic Search Scroll API Asynchronous execution
body: <p>I'm running an elastic search cluster 5.6 version with 70Gb index size/ day. At the end of the day we are requested to make summarizations of each hour for the last 7 day. We are using the java version of the High Level Rest client and considering the amount of docs each query returns is critical to scroll the results.</p>
  
  <p>In order to take advantage of the CPUs we have, and decrease the reading time, we were thinking about using the search Scroll Asynchronous version but we are missing  some example and at least the logic inside it to move forward.</p>
  
  <p>We already check elastic related documentation but it's to vague:</p>
  
  <p><a href="https://www.elastic.co/guide/en/elasticsearch/client/java-rest/5.6/java-rest-high-search-scroll.html#java-rest-high-search-scroll-async" rel="nofollow noreferrer">https://www.elastic.co/guide/en/elasticsearch/client/java-rest/5.6/java-rest-high-search-scroll.html#java-rest-high-search-scroll-async</a> </p>
  
  <p>We also ask in the elastic discussion forum as they say but it looks like nobody can't answer that:</p>
  
  <p><a href="https://discuss.elastic.co/t/no-code-for-example-of-using-scrollasync-with-the-java-high-level-rest-client/165126" rel="nofollow noreferrer">https://discuss.elastic.co/t/no-code-for-example-of-using-scrollasync-with-the-java-high-level-rest-client/165126</a> </p>
  
  <p>Any help on this will be very appreciated and for sure I'm not the only one having this req.  </p>