Composite Aggregation - Document count

(Dh) #1

Does elasticsearch guarantee with exact document count in composite aggregation's result, unlike term aggregation? or is it approximate number just like terms aggregation?

(Mark Harwood) #2

Yes, composite doc counts are accurate.
Term aggs sort (by default) by popularity which can be uneven across shards.
Composite agg sorts by key order which is a constant ordering across shards.

(system) #3

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.