Terms aggregation - from and to

Hello,

We need to extract partial number of the result of "Terms" aggregation from a starting point and till an endpoint, lets say - only the 10th till the 20th values.
We have the "size" parameter, but it there a way to set also the "start"?

I know that we can set in this case size = 20 and in the code take only a subset of the result, but if there is a way to do it in Elasticsearch it will be nicer, because we can have lots of values, and we don't want to get heavy memory in our application.

Thanks!

I don't think it's possible. Or if it is it will consume anyway a lot of memory on elasticsearch side IMO.

I'm curious about the use case though.
Is that something you want to display to the users or to process later in another system?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.