Elasticsearch cardinality aggregation not returning accurate numbers despite using precision_threshold

Have a look at this thread.