We're interested here in working with high-cardinality indexes. (Which are known to be a problem for Elastic Search)
We already know from you that for
select count(distinct high_cardinality_field) from my_table
you already have some optimizations to count it. Will it be possible someday to write something like:
select count_via_hyperloglog(high_cardinality_field) from my_table
having count_via_hyperloglog as a UDF or something, as it is possible right now in ES via ES-plugins?