# Filter nested hits based on grandchildren

**URL:** <https://discuss.elastic.co/t/filter-nested-hits-based-on-grandchildren/148820>\
**Category:** Elasticsearch\
**Created:** [September 17, 2018, 11:30am UTC](https://discuss.elastic.co/t/filter-nested-hits-based-on-grandchildren/148820 "2018-09-17T11:30:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![elasticalan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/elasticalan/32/35608_2.png) [@elasticalan](https://discuss.elastic.co/u/elasticalan)\
**Post date:** [September 17, 2018, 11:30am UTC](https://discuss.elastic.co/t/filter-nested-hits-based-on-grandchildren/148820/1 "2018-09-17T11:30:15Z")

</div>

Hey there. I have a problem finding the right way to do this. I am using the PHP API.

---

<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:** [October 15, 2018, 11:30am UTC](https://discuss.elastic.co/t/filter-nested-hits-based-on-grandchildren/148820/2 "2018-10-15T11:30:19Z")

</div>

Closed on October 15, 2018, 11:30am UTC

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