# What differs between post-filter and global aggregation for faceted search?

**URL:** <https://discuss.elastic.co/t/what-differs-between-post-filter-and-global-aggregation-for-faceted-search/69818>\
**Category:** Elasticsearch\
**Created:** [December 22, 2016, 4:04pm UTC](https://discuss.elastic.co/t/what-differs-between-post-filter-and-global-aggregation-for-faceted-search/69818 "2016-12-22T16:04:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nanne](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nanne/32/14086_2.png) [@Nanne](https://discuss.elastic.co/u/Nanne)\
**Post date:** [December 22, 2016, 4:04pm UTC](https://discuss.elastic.co/t/what-differs-between-post-filter-and-global-aggregation-for-faceted-search/69818/1 "2016-12-22T16:04:26Z")

</div>

To do 'faceted search' or 'faceted navigation', we can both use post-filters or a global aggregation to get counts for results "outside" the actual resultset we want to show.  
I wonder why both options are there, what the difference is, etc; they look to provide the exact same features in a somewhat different way.

Complete question, including some examples and references here:

> <https://stackoverflow.com/questions/41285790/what-differs-between-post-filter-and-global-aggregation-for-faceted-search>

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [January 19, 2017, 4:04pm UTC](https://discuss.elastic.co/t/what-differs-between-post-filter-and-global-aggregation-for-faceted-search/69818/2 "2017-01-19T16:04:33Z")

</div>

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