How to use Scroll on Elasticsearch aggregation? : <p>I am using Elasticsearch 5.3. I am aggregating on some data but the results are far too much to return in a single query. I tried using <code>size = Integer.MAX_VALUE;</code> but even that has proved to be less. In ES search API, there is a method to <a href="https://www.elastic.co/guide/en/elasticsearch/client/java-api/current/java-search-scrolling.html" rel="noreferrer" title="scroll">scroll</a> through the search results. Is there a similar feature to use for the <code>org.elasticsearch.search.aggregations.AggregationBuilders.terms</code> aggregator and how do I use it? Can the search scroll API be used for the aggregators?</p>
