So, we could have any arbitrary number of buckets. Think if each bucket holds the results from a "terms " aggregation from another type, that means that for a field with a high carnality we will end up with a high number or buckets which in turns means same number of filters.
We found another solution using "terms" aggregation with "script" where we can dynamically add params... what we don't know yet is which one is more performance.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.