Hi, I am using Elastic Search URL to get metadata from ESRI Geoportal.
When I am Posting query in Geoportal it is returning single feature set as result and it's total count in DB( Feature set Count Exceeds Default Count :10000).
For Ex:- PayLoad Screenshot below.

Response Screenshot Below:

But For every Distinct Value against a Field in Metadata i am posting individual query with changed field value.
So to reduce the number of posted queries.
Is there any way we can get all the distinct values against a tag and their respective counts in metadata using elastic search if any please reply.
.