# Returning nested documents using BlockJoinCollector.getTopGroups

**URL:** <https://discuss.elastic.co/t/returning-nested-documents-using-blockjoincollector-gettopgroups/11842>\
**Category:** Elasticsearch\
**Created:** [May 7, 2013, 1:49am UTC](https://discuss.elastic.co/t/returning-nested-documents-using-blockjoincollector-gettopgroups/11842 "2013-05-07T01:49:41Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![btiernay](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@btiernay](https://discuss.elastic.co/u/btiernay)\
**Post date:** [May 7, 2013, 1:49am UTC](https://discuss.elastic.co/t/returning-nested-documents-using-blockjoincollector-gettopgroups/11842/1 "2013-05-07T01:49:41Z")

</div>

Hi all,

I was reading:

> **[Searching relational content with Lucene's BlockJoinQuery](http://blog.mikemccandless.com/2012/01/searching-relational-content-with.html)**
>
> Lucene's 3.4.0 release adds a new feature called index-time join (also sometimes called sub-documents, nested documents or parent/child d...

And was curious if it is possible to get the BlockJoinCollector.getTopGroupssemantics using ElasticSearch. We have some really large documents due to  
having a large number of children. If we could return only those children  
that matched the nested query, that would save on post processing and IO  
for ES. It would also allow use not have to store the source in certain  
cases.

Just wondering if this is on the ES roadmap, and if so is there a github  
issue I can track?

Thanks again!

Bob

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)\
**Post date:** [May 8, 2013, 9:21am UTC](https://discuss.elastic.co/t/returning-nested-documents-using-blockjoincollector-gettopgroups/11842/2 "2013-05-08T09:21:58Z")

</div>

Hi Bob,

Returning the matching nested inner objects per hit is on the roadmap.  
There is no issue for this feature yet.

Martijn

On 7 May 2013 03:49, btiernay [rtiernay@gmail.com](mailto:rtiernay@gmail.com) wrote:

> Hi all,
> 
> I was reading:
> 
> [Changing Bits: Searching relational content with Lucene's BlockJoinQuery](http://blog.mikemccandless.com/2012/01/searching-relational-content-with.html)
> 
> And was curious if it is possible to get theBlockJoinCollector.getTopGroupssemantics using Elasticsearch. We have some really large documents due to  
> having a large number of children. If we could return only those children  
> that matched the nested query, that would save on post processing and IO  
> for ES. It would also allow use not have to store the source in certain  
> cases.
> 
> Just wondering if this is on the ES roadmap, and if so is there a github  
> issue I can track?
> 
> Thanks again!
> 
> Bob
> 
> --  
> 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).  
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
Met vriendelijke groet,

Martijn van Groningen

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![btiernay](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@btiernay](https://discuss.elastic.co/u/btiernay)\
**Post date:** [May 8, 2013, 11:24am UTC](https://discuss.elastic.co/t/returning-nested-documents-using-blockjoincollector-gettopgroups/11842/3 "2013-05-08T11:24:32Z")

</div>

Thanks for the update Martijn. This is a highly desirable feature that I  
look forward to using!

Cheers,

Bob

On Wednesday, 8 May 2013 05:21:58 UTC-4, Martijn v Groningen wrote:

> Hi Bob,
> 
> Returning the matching nested inner objects per hit is on the roadmap.  
> There is no issue for this feature yet.
> 
> Martijn
> 
> On 7 May 2013 03:49, btiernay \<[rtie...@gmail.com](mailto:rtie...@gmail.com) \<javascript:\>\> wrote:
> 
> > Hi all,
> > 
> > I was reading:
> > 
> > [Changing Bits: Searching relational content with Lucene's BlockJoinQuery](http://blog.mikemccandless.com/2012/01/searching-relational-content-with.html)
> > 
> > And was curious if it is possible to get theBlockJoinCollector.getTopGroupssemantics using Elasticsearch. We have some really large documents due to  
> > having a large number of children. If we could return only those children  
> > that matched the nested query, that would save on post processing and IO  
> > for ES. It would also allow use not have to store the source in certain  
> > cases.
> > 
> > Just wondering if this is on the ES roadmap, and if so is there a github  
> > issue I can track?
> > 
> > Thanks again!
> > 
> > Bob
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> Met vriendelijke groet,
> 
> Martijn van Groningen

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![btiernay](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@btiernay](https://discuss.elastic.co/u/btiernay)\
**Post date:** [May 20, 2013, 11:14pm UTC](https://discuss.elastic.co/t/returning-nested-documents-using-blockjoincollector-gettopgroups/11842/4 "2013-05-20T23:14:31Z")

</div>

Hey Martijn,

Just curious if [Return matching nested inner objects per hit · Issue #3022 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/3022) addresses  
this issue. If so, which release is this slated for?

Thanks again,

Bob

On Wednesday, 8 May 2013 05:21:58 UTC-4, Martijn v Groningen wrote:

> Hi Bob,
> 
> Returning the matching nested inner objects per hit is on the roadmap.  
> There is no issue for this feature yet.
> 
> Martijn
> 
> On 7 May 2013 03:49, btiernay \<[rtie...@gmail.com](mailto:rtie...@gmail.com) \<javascript:\>\> wrote:
> 
> > Hi all,
> > 
> > I was reading:
> > 
> > [Changing Bits: Searching relational content with Lucene's BlockJoinQuery](http://blog.mikemccandless.com/2012/01/searching-relational-content-with.html)
> > 
> > And was curious if it is possible to get theBlockJoinCollector.getTopGroupssemantics using Elasticsearch. We have some really large documents due to  
> > having a large number of children. If we could return only those children  
> > that matched the nested query, that would save on post processing and IO  
> > for ES. It would also allow use not have to store the source in certain  
> > cases.
> > 
> > Just wondering if this is on the ES roadmap, and if so is there a github  
> > issue I can track?
> > 
> > Thanks again!
> > 
> > Bob
> > 
> > --  
> > 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 [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).
> 
> --  
> Met vriendelijke groet,
> 
> Martijn van Groningen

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![mvg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mvg/32/98890_2.png) [@mvg](https://discuss.elastic.co/u/mvg)\
**Post date:** [May 21, 2013, 11:30am UTC](https://discuss.elastic.co/t/returning-nested-documents-using-blockjoincollector-gettopgroups/11842/5 "2013-05-21T11:30:14Z")

</div>

Hey Bob,

That issue addresses what you have mentioned in your first email, but in  
different wording. This issue it is on the roadmap, but there no concrete  
short term plans to put this in a release.

Martijn

On 21 May 2013 01:14, btiernay [rtiernay@gmail.com](mailto:rtiernay@gmail.com) wrote:

> Hey Martijn,
> 
> Just curious if [Return matching nested inner objects per hit · Issue #3022 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/3022) addresses  
> this issue. If so, which release is this slated for?
> 
> Thanks again,
> 
> Bob
> 
> On Wednesday, 8 May 2013 05:21:58 UTC-4, Martijn v Groningen wrote:
> 
> > Hi Bob,
> > 
> > Returning the matching nested inner objects per hit is on the roadmap.  
> > There is no issue for this feature yet.
> > 
> > Martijn
> > 
> > On 7 May 2013 03:49, btiernay [rtie...@gmail.com](mailto:rtie...@gmail.com) wrote:
> > 
> > > Hi all,
> > > 
> > > I was reading:
> > > 
> > > [http://blog.mikemccandless](http://blog.mikemccandless). **com/2012/01/searching-**  
> > > relational-content-with.html[http://blog.mikemccandless.com/2012/01/searching-relational-content-with.html](http://blog.mikemccandless.com/2012/01/searching-relational-content-with.html)
> > > 
> > > And was curious if it is possible to get the BlockJoinCollector.\*\*  
> > > getTopGroups semantics using Elasticsearch. We have some really large  
> > > documents due to having a large number of children. If we could return only  
> > > those children that matched the nested query, that would save on post  
> > > processing and IO for ES. It would also allow use not have to store the  
> > > source in certain cases.
> > > 
> > > Just wondering if this is on the ES roadmap, and if so is there a github  
> > > issue I can track?
> > > 
> > > Thanks again!
> > > 
> > > Bob
> > > 
> > > --  
> > > 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 elasticsearc...@\*\*[googlegroups.com](http://googlegroups.com).
> > > 
> > > For more options, visit [https://groups.google.com/\*\*groups/opt\_out](https://groups.google.com/**groups/opt_out)[https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out)  
> > > .
> > 
> > --  
> > Met vriendelijke groet,
> > 
> > Martijn van Groningen

--  
Met vriendelijke groet,

Martijn van Groningen

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![btiernay](https://avatars.discourse-cdn.com/v4/letter/b/bb73d2/32.png) [@btiernay](https://discuss.elastic.co/u/btiernay)\
**Post date:** [May 23, 2013, 12:43am UTC](https://discuss.elastic.co/t/returning-nested-documents-using-blockjoincollector-gettopgroups/11842/6 "2013-05-23T00:43:34Z")

</div>

Sorry Martin, I guess I misread the issue and thought it was already  
closed. My mistake! 🙂

Cheers,

Bob

On Tuesday, 21 May 2013 07:30:14 UTC-4, Martijn v Groningen wrote:

> Hey Bob,
> 
> That issue addresses what you have mentioned in your first email, but in  
> different wording. This issue it is on the roadmap, but there no concrete  
> short term plans to put this in a release.
> 
> Martijn
> 
> On 21 May 2013 01:14, btiernay \<[rtie...@gmail.com](mailto:rtie...@gmail.com) \<javascript:\>\> wrote:
> 
> > Hey Martijn,
> > 
> > Just curious if  
> > [Return matching nested inner objects per hit · Issue #3022 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/3022) addresses  
> > this issue. If so, which release is this slated for?
> > 
> > Thanks again,
> > 
> > Bob
> > 
> > On Wednesday, 8 May 2013 05:21:58 UTC-4, Martijn v Groningen wrote:
> > 
> > > Hi Bob,
> > > 
> > > Returning the matching nested inner objects per hit is on the roadmap.  
> > > There is no issue for this feature yet.
> > > 
> > > Martijn
> > > 
> > > On 7 May 2013 03:49, btiernay [rtie...@gmail.com](mailto:rtie...@gmail.com) wrote:
> > > 
> > > > Hi all,
> > > > 
> > > > I was reading:
> > > > 
> > > > [http://blog.mikemccandless](http://blog.mikemccandless). **com/2012/01/searching-**  
> > > > relational-content-with.html[http://blog.mikemccandless.com/2012/01/searching-relational-content-with.html](http://blog.mikemccandless.com/2012/01/searching-relational-content-with.html)
> > > > 
> > > > And was curious if it is possible to get the BlockJoinCollector.\*\*  
> > > > getTopGroups semantics using Elasticsearch. We have some really large  
> > > > documents due to having a large number of children. If we could return only  
> > > > those children that matched the nested query, that would save on post  
> > > > processing and IO for ES. It would also allow use not have to store the  
> > > > source in certain cases.
> > > > 
> > > > Just wondering if this is on the ES roadmap, and if so is there a  
> > > > github issue I can track?
> > > > 
> > > > Thanks again!
> > > > 
> > > > Bob
> > > > 
> > > > --  
> > > > 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 elasticsearc...@\*\*[googlegroups.com](http://googlegroups.com).
> > > > 
> > > > For more options, visit [https://groups.google.com/\*\*groups/opt\_out](https://groups.google.com/**groups/opt_out)[https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out)  
> > > > .
> > > 
> > > --  
> > > Met vriendelijke groet,
> > > 
> > > Martijn van Groningen
> 
> --  
> Met vriendelijke groet,
> 
> Martijn van Groningen

--  
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).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 2:35am UTC](https://discuss.elastic.co/t/returning-nested-documents-using-blockjoincollector-gettopgroups/11842/7 "2017-07-06T02:35:18Z")

</div>


