I am writing a function which just groupby a string property. For this purpose, I need to select topValues()
as the aggregation type. However, I get all possible buckets, while I just need the first 10 ones. Is it possible to set the max. number of buckets to retrieve?
.topValues(10
) is not working. No configuration possibility available.- I wrote a function to return 1000 values and then, keep just the first 10. This is however really unefficient.