Hi,
I'm trying to return at most 100 results in my search. I know I can work with "from" and "size", but these still return the aggregates and hits['total'] for all possible results (more than 100).
Since I'm using automatic pagination and a nice display for the aggregations on my site, I can't hardcode the limit in the front-end. I do still want to use pagination (for example 25 results per page, so 4 pages in my case).
What would be the best way to limit the results and aggregations to return only the first x number of results (paginate-able)?
Best regards!