Hi,
I tried using composite aggregation and using terms value source.
For me it looks like all the responses contain the after_key
How to identify from the response to decide when to send the request for next page?
I could not find the information here
https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-composite-aggregation.html