Getting accurate cardinality for a field in single shard index

Thanks a lot that makes sense now. one of a better way to calculate cardinality rather than memory hungry terms aggregation

1 Like