Group results by value when "Searching using the v2 search API"

Hi there,

we’re trying to find a way to retrieve all distinct different values for a field of all existing pages in a space by using, is this possible?

We are currently using to retrieve all pages with the field set but as it is necessary to provide a limit value, not all different values are retrieved.
Is there a way to specify a no limit query?
What about a grouping query?
Is pagination an optimal solution?

Thanks in advance!