title: Return all records in one query in Elasticsearch
body: <p>I have a database in elastic search and want to get all records on my web site page. I wrote a bean, which connects to the elastic search node, searches records and returns some response. My simple java code, which does the searching, is</p>
  
  <pre><code>SearchResponse response = getClient().prepareSearch(indexName)
      .setTypes(typeName)              
      .setQuery(queryString("\*:*"))
      .setExplain(true)
      .execute().actionGet();
  </code></pre>
  
  <p>But Elasticsearch set default size to 10 and I have 10 hits in response. There are more than 10 records in my database. If I set size to <code>Integer.MAX_VALUE</code> my search becomes very slow and this not what I want. </p>
  
  <p>How can I get all the records in one action in an acceptable amount of time without setting size of response?</p>