# Querying multiple differently nested objects from a single path?

**URL:** <https://discuss.elastic.co/t/querying-multiple-differently-nested-objects-from-a-single-path/22900>\
**Category:** Elasticsearch\
**Created:** [March 25, 2015, 5:52pm UTC](https://discuss.elastic.co/t/querying-multiple-differently-nested-objects-from-a-single-path/22900 "2015-03-25T17:52:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JZ1](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@JZ1](https://discuss.elastic.co/u/JZ1)\
**Post date:** [March 25, 2015, 5:52pm UTC](https://discuss.elastic.co/t/querying-multiple-differently-nested-objects-from-a-single-path/22900/1 "2015-03-25T17:52:34Z")

</div>

I have a document in which multiple nested objects are defined for  
different field names. These objects can occur in different hierarchies.

Indexing is fine.

Querying is difficult.

I see it is not possible to make the root the nested object and refer to  
this root as the path for any of the other nested objects.

I assume providing a wildcard in the nested path is also not supported.

I am wondering how you can query multiple different nested objects without  
defining a nested query for each of the nested objects?

Any tips or ideas are welcome.

/JZ

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAA%2BD3eUMPw8imPLN6V%3DjqQvxcH3-2CnYH0fLG%3Dq1Y\_2az6tQNQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAA%2BD3eUMPw8imPLN6V%3DjqQvxcH3-2CnYH0fLG%3Dq1Y_2az6tQNQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:23am UTC](https://discuss.elastic.co/t/querying-multiple-differently-nested-objects-from-a-single-path/22900/2 "2017-07-06T00:23:59Z")

</div>


