title: Get all documents from an index - elasticsearch
body: <p>How can I get all documents from an index in elasticsearch without determining the size in the query like</p>
  
  <pre><code>GET http://localhost:8090/my_index/_search?size=1000&amp;scroll=1m&amp;pretty=true'-d '{"size": 0,"query":{"query_string":{ "match_all" : {}}}}
  </code></pre>
  
  <p>Thanks</p>