# Post-filtering of Top Hits Aggregation results

**URL:** <https://discuss.elastic.co/t/post-filtering-of-top-hits-aggregation-results/161407>\
**Category:** Elasticsearch\
**Created:** [December 18, 2018, 8:03pm UTC](https://discuss.elastic.co/t/post-filtering-of-top-hits-aggregation-results/161407 "2018-12-18T20:03:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmikhailov](https://avatars.discourse-cdn.com/v4/letter/l/a9adbd/32.png) [@lmikhailov](https://discuss.elastic.co/u/lmikhailov)\
**Post date:** [December 18, 2018, 8:03pm UTC](https://discuss.elastic.co/t/post-filtering-of-top-hits-aggregation-results/161407/1 "2018-12-18T20:03:02Z")

</div>

Hi,

I need to be able to post-filter results of Top Hits Aggregation using the usual and geo queries/filters. Since Top Hits Aggregation returns plain records it should be possible but I was not able to figure out how to do that. Any advice on how to do that would be very helpful! If it is not currently supported, are there any plans to provide such a capability?

Thanks,  
Leon

---

<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 15, 2019, 8:03pm UTC](https://discuss.elastic.co/t/post-filtering-of-top-hits-aggregation-results/161407/2 "2019-01-15T20:03:08Z")

</div>

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