# Nested objects and join

**URL:** <https://discuss.elastic.co/t/nested-objects-and-join/21642>\
**Category:** Elasticsearch\
**Created:** [January 14, 2015, 4:52pm UTC](https://discuss.elastic.co/t/nested-objects-and-join/21642 "2015-01-14T16:52:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![bvnagaraju](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@bvnagaraju](https://discuss.elastic.co/u/bvnagaraju)\
**Post date:** [January 14, 2015, 4:52pm UTC](https://discuss.elastic.co/t/nested-objects-and-join/21642/1 "2015-01-14T16:52:01Z")

</div>

Can some one help in understanding the nested objects and join flag  
mentioned in below link

[http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-nested-filter.html](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-nested-filter.html)

my understanding from tests I did is that entire nested object will be  
returned if root document qualifies or nested document qualifies.

Is it possible to just get the nested objected for the queries that just  
qualifies nested object?

Is is possible to just get the root object for the queries that just  
qualifies root object?

what is the exact use of join mentioned in above link ?

--  
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/db78fe04-f8ec-4a33-9ece-9fdb3251a35e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/db78fe04-f8ec-4a33-9ece-9fdb3251a35e%40googlegroups.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:38am UTC](https://discuss.elastic.co/t/nested-objects-and-join/21642/2 "2017-07-06T00:38:57Z")

</div>


