# Multiple nested queries with the same path

**URL:** https://discuss.elastic.co/t/multiple-nested-queries-with-the-same-path/157532
**Category:** Elasticsearch
**Created:** [November 20, 2018, 11:57am UTC](https://discuss.elastic.co/t/multiple-nested-queries-with-the-same-path/157532 "2018-11-20T11:57:49Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![abdon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/abdon/32/9195_2.png) [@abdon](https://discuss.elastic.co/u/abdon)
#### Post date: [December 4, 2018, 5:31pm UTC](https://discuss.elastic.co/t/multiple-nested-queries-with-the-same-path/157532/5 "2018-12-04T17:31:33Z")

</div>

Unfortunately what you're trying to do is not trivial. You would need something like a "reverse nested query" to do this, which [has been discussed but is not likely to be implemented in the short term](https://github.com/elastic/elasticsearch/issues/20101).

There is a suggestion in [this topic](https://discuss.elastic.co/t/query-on-fields-of-owning-document-inside-nested-query/58369) on how you could rewrite your query logic. Maybe that helps?

---

_[View the full topic](https://discuss.elastic.co/t/multiple-nested-queries-with-the-same-path/157532)._
