Is there any "from" in aggregations?

(Ashish Goel) #1

While writing a query, we can mention "from" and "size" to get a specific number of results at a time. By updating "from" we can then get the next set of results. In aggregations, we can mention "size", but I am having a hard time on how to mention "from".

(David Pilato) #2

I'm not sure you can. Aggregations are built on the full result set, whatever from and size are.

(Ashish Goel) #3

My requirement is to show the results from an aggregation in paginated format. I just want to avoid storing all the results in memory and showing only a few out of them at a time. I fear it will not scale.

(David Pilato) #4

I don't understand the use case.
Not sure you need to complicate something which is working well out of the box. :stuck_out_tongue:

(Isabel Drost-Fromm) #5

I think the following github issue might be relevant to your question:

(system) #6