=> calculate metrics, such as a sum or average, from field values. • Bucket aggregations => group documents into buckets, based on field values, ranges, or other criteria. • Pipeline aggregations => take input from other aggregations.
facets [{white:10}, { black: 6},...]) • Show top N facets for each metadata (category, brand, color, and etc) • Show all facet counts for it when filtered by itself • Show filtered facet count by the other applied filters