# Filters on both parent and child

**URL:** <https://discuss.elastic.co/t/filters-on-both-parent-and-child/139235>\
**Category:** Elasticsearch\
**Created:** [July 9, 2018, 8:24pm UTC](https://discuss.elastic.co/t/filters-on-both-parent-and-child/139235 "2018-07-09T20:24:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![anp](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@anp](https://discuss.elastic.co/u/anp)\
**Post date:** [July 9, 2018, 8:24pm UTC](https://discuss.elastic.co/t/filters-on-both-parent-and-child/139235/1 "2018-07-09T20:24:43Z")

</div>

I'm trying to model a parent-child relationship using the join datatype. For example, department - employee. When I query is it possible to specify a filter on both parent and child at the same time? For example, department\_location = California and employee\_position = Manager? If yes, what would the syntax be?

---

<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:** [August 6, 2018, 8:24pm UTC](https://discuss.elastic.co/t/filters-on-both-parent-and-child/139235/2 "2018-08-06T20:24:46Z")

</div>

Closed on August 6, 2018, 8:24pm UTC

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