Accuracy in ES search

Size = 0 won’t work for very high cardinality terms. You may need to look at the ‘composite’ agg or partitioning with the terms agg