Slice the aggregation

Hi guys,

I want to paginate the aggregation, so I decided to use partition filter for my case.

  1. Is it the right decision?
  2. How to assign "num_partitions " dynamically using "cardinality" in a single query?

We also now have a composite aggregation too which relies on using a particular sort order and passing an after parameter to make repeated calls, each time asking for N results "after" whatever was the last item you unpacked in the last N results.

You can't. We currently don't have a single query that makes these sorts of multiple requests on your behalf.

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