# Highlighting with parent/child queries

**URL:** https://discuss.elastic.co/t/highlighting-with-parent-child-queries/5220
**Category:** Elasticsearch
**Created:** [August 22, 2011, 3:17pm UTC](https://discuss.elastic.co/t/highlighting-with-parent-child-queries/5220 "2011-08-22T15:17:43Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Nicolas\_Lalevee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nicolas_lalevee/32/2892_2.png) [@Nicolas\_Lalevee](https://discuss.elastic.co/u/Nicolas_Lalevee)
#### Post date: [August 22, 2011, 3:17pm UTC](https://discuss.elastic.co/t/highlighting-with-parent-child-queries/5220/1 "2011-08-22T15:17:43Z")

</div>

I am quite interested to use the top\_children query but I would need to get the info about the children, mainly their ids and some highlight. I know it is not implemented and I would like to provide an implementation.

First, does anybody is already working on it ?

If not, here is a suggested API.  
On the query side, we would specify we want the children to be returned along with their parent data, and optionally some highlighting on the children fields.  
{  
"query": {  
"top\_children" : {  
"type": "subcontent",  
"query" : {  
"term" : {  
"name" : "bike"  
}  
}  
"score" : "max",  
"factor" : 5,  
"incremental\_factor" : 2  
}  
},  
"children": { // just having this tags means we at least want the ids of the children  
"size" : 2, // maximum number of children by parent to return  
"full\_data" : false, // if true return not just the id of the child but also its data  
"highlight" : { // same syntax as for normal queries  
"fields" : {  
"name" : {}  
}  
}  
}  
}

Then as results we would have something like:  
"hits" : {  
"total" : 7,  
"max\_score" : 3.366573  
"hits" : [  
{  
"\_index" : "es",  
"\_type" : "twitter",  
"\_id" : 8001,  
"\_score" : 3.366573,  
"children": {  
"total" : 4,  
"hits" : [ // hits on children of this current parent, ordered by score  
{  
"\_id" : 654,  
"highlight" : {  
"name" : ["my lovely _bike_"]  
}  
},  
{  
"\_id" : 987,  
"highlight" : {  
"name" : ["my nice _bike_"]  
}  
}  
]  
}  
},  
{  
"\_index" : "es",  
"\_type" : "twitter",  
"\_id" : 8004,  
.... etc....  
}

With this structure I guess we cover it all.

Now about the implementation.

First the information about the children needs to be kept along between the time the query is executed and the time the highlight phase happen. The simplest way of doing that seems to have the query implementation holding it. Then later on, the highlight having access to the context and thus to the query, the info on the children/parent association is accessible and ordered by score.  
I am starting to think about an interface implemented by both the TopChildrenQuery and the BlockJoinQuery which would provide child info for a parent doc, ordered by score.

We would also need an implementation of FieldQuery which will only lookup to decompose the sub queries of TopChildrenQuery and BlockJoinQuery. Idem, an interface would expose on both queries an accessor to the query on the children.

About the highlighting of the children, the current code if HighlightPhase seems to fit at almost 80%. I guess a refactor is needed to extract from that code a ESHighlighter which would be used by both the parent highlight and the child one.

Since everything is done document by document, I don't see any issue regarding the sharding (I'm quite far from an expert in that area though).

I don't know yet how to properly get the data of the children, but I would probably get a lot of inspiration from the fetch phase.

Since I haven't started to code and I don't know that much elasticsearch code, at least does that makes sense ?

Nicolas

---

<div class="post-metadata">

### Author: ![Nicolas\_Lalevee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nicolas_lalevee/32/2892_2.png) [@Nicolas\_Lalevee](https://discuss.elastic.co/u/Nicolas_Lalevee)
#### Post date: [August 29, 2011, 11:20am UTC](https://discuss.elastic.co/t/highlighting-with-parent-child-queries/5220/2 "2011-08-29T11:20:25Z")

</div>

No news so I'll start working on it.

Nicolas

Le 22 août 2011 à 17:17, Nicolas Lalevée a écrit :

> I am quite interested to use the top\_children query but I would need to get the info about the children, mainly their ids and some highlight. I know it is not implemented and I would like to provide an implementation.
> 
> First, does anybody is already working on it ?
> 
> If not, here is a suggested API.  
> On the query side, we would specify we want the children to be returned along with their parent data, and optionally some highlighting on the children fields.  
> {  
> "query": {  
> "top\_children" : {  
> "type": "subcontent",  
> "query" : {  
> "term" : {  
> "name" : "bike"  
> }  
> }  
> "score" : "max",  
> "factor" : 5,  
> "incremental\_factor" : 2  
> }  
> },  
> "children": { // just having this tags means we at least want the ids of the children  
> "size" : 2, // maximum number of children by parent to return  
> "full\_data" : false, // if true return not just the id of the child but also its data  
> "highlight" : { // same syntax as for normal queries  
> "fields" : {  
> "name" : {}  
> }  
> }  
> }  
> }
> 
> Then as results we would have something like:  
> "hits" : {  
> "total" : 7,  
> "max\_score" : 3.366573  
> "hits" : [  
> {  
> "\_index" : "es",  
> "\_type" : "twitter",  
> "\_id" : 8001,  
> "\_score" : 3.366573,  
> "children": {  
> "total" : 4,  
> "hits" : [ // hits on children of this current parent, ordered by score  
> {  
> "\_id" : 654,  
> "highlight" : {  
> "name" : ["my lovely _bike_"]  
> }  
> },  
> {  
> "\_id" : 987,  
> "highlight" : {  
> "name" : ["my nice _bike_"]  
> }  
> }  
> ]  
> }  
> },  
> {  
> "\_index" : "es",  
> "\_type" : "twitter",  
> "\_id" : 8004,  
> .... etc....  
> }
> 
> With this structure I guess we cover it all.
> 
> Now about the implementation.
> 
> First the information about the children needs to be kept along between the time the query is executed and the time the highlight phase happen. The simplest way of doing that seems to have the query implementation holding it. Then later on, the highlight having access to the context and thus to the query, the info on the children/parent association is accessible and ordered by score.  
> I am starting to think about an interface implemented by both the TopChildrenQuery and the BlockJoinQuery which would provide child info for a parent doc, ordered by score.
> 
> We would also need an implementation of FieldQuery which will only lookup to decompose the sub queries of TopChildrenQuery and BlockJoinQuery. Idem, an interface would expose on both queries an accessor to the query on the children.
> 
> About the highlighting of the children, the current code if HighlightPhase seems to fit at almost 80%. I guess a refactor is needed to extract from that code a ESHighlighter which would be used by both the parent highlight and the child one.
> 
> Since everything is done document by document, I don't see any issue regarding the sharding (I'm quite far from an expert in that area though).
> 
> I don't know yet how to properly get the data of the children, but I would probably get a lot of inspiration from the fetch phase.
> 
> Since I haven't started to code and I don't know that much elasticsearch code, at least does that makes sense ?
> 
> Nicolas

---

<div class="post-metadata">

### Author: ![Nicolas\_Lalevee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nicolas_lalevee/32/2892_2.png) [@Nicolas\_Lalevee](https://discuss.elastic.co/u/Nicolas_Lalevee)
#### Post date: [September 22, 2011, 1:53pm UTC](https://discuss.elastic.co/t/highlighting-with-parent-child-queries/5220/3 "2011-09-22T13:53:44Z")

</div>

As always, I've been busy before be able to actually starting to work on it. But here it is, I have a working prototype.  
You can see it in the branch "children" on my github [1].

It is nicely working with the TopChildrenQuery, but not with the BlockJoinQuery. Whereas it is pretty simple to work with real Lucene document with the parent/child model, it is not with the nested document model.  
And since I am interested myself only the TopChildrenQuery, I have not dug further. I would be happy to correctly implement it if I was given some hints.

Any comment on the code I wrote will be greatly appreciated.

If interested, I can make it a pull request on master and also work on patching the doc.

Nicolas

[1] [Commits · hibnico/elasticsearch · GitHub](https://github.com/nlalevee/elasticsearch/commits/children)

Le 29 août 2011 à 13:20, Nicolas Lalevée a écrit :

> No news so I'll start working on it.
> 
> Nicolas
> 
> Le 22 août 2011 à 17:17, Nicolas Lalevée a écrit :
> 
> > I am quite interested to use the top\_children query but I would need to get the info about the children, mainly their ids and some highlight. I know it is not implemented and I would like to provide an implementation.
> > 
> > First, does anybody is already working on it ?
> > 
> > If not, here is a suggested API.  
> > On the query side, we would specify we want the children to be returned along with their parent data, and optionally some highlighting on the children fields.  
> > {  
> > "query": {  
> > "top\_children" : {  
> > "type": "subcontent",  
> > "query" : {  
> > "term" : {  
> > "name" : "bike"  
> > }  
> > }  
> > "score" : "max",  
> > "factor" : 5,  
> > "incremental\_factor" : 2  
> > }  
> > },  
> > "children": { // just having this tags means we at least want the ids of the children  
> > "size" : 2, // maximum number of children by parent to return  
> > "full\_data" : false, // if true return not just the id of the child but also its data  
> > "highlight" : { // same syntax as for normal queries  
> > "fields" : {  
> > "name" : {}  
> > }  
> > }  
> > }  
> > }
> > 
> > Then as results we would have something like:  
> > "hits" : {  
> > "total" : 7,  
> > "max\_score" : 3.366573  
> > "hits" : [  
> > {  
> > "\_index" : "es",  
> > "\_type" : "twitter",  
> > "\_id" : 8001,  
> > "\_score" : 3.366573,  
> > "children": {  
> > "total" : 4,  
> > "hits" : [ // hits on children of this current parent, ordered by score  
> > {  
> > "\_id" : 654,  
> > "highlight" : {  
> > "name" : ["my lovely _bike_"]  
> > }  
> > },  
> > {  
> > "\_id" : 987,  
> > "highlight" : {  
> > "name" : ["my nice _bike_"]  
> > }  
> > }  
> > ]  
> > }  
> > },  
> > {  
> > "\_index" : "es",  
> > "\_type" : "twitter",  
> > "\_id" : 8004,  
> > .... etc....  
> > }
> > 
> > With this structure I guess we cover it all.
> > 
> > Now about the implementation.
> > 
> > First the information about the children needs to be kept along between the time the query is executed and the time the highlight phase happen. The simplest way of doing that seems to have the query implementation holding it. Then later on, the highlight having access to the context and thus to the query, the info on the children/parent association is accessible and ordered by score.  
> > I am starting to think about an interface implemented by both the TopChildrenQuery and the BlockJoinQuery which would provide child info for a parent doc, ordered by score.
> > 
> > We would also need an implementation of FieldQuery which will only lookup to decompose the sub queries of TopChildrenQuery and BlockJoinQuery. Idem, an interface would expose on both queries an accessor to the query on the children.
> > 
> > About the highlighting of the children, the current code if HighlightPhase seems to fit at almost 80%. I guess a refactor is needed to extract from that code a ESHighlighter which would be used by both the parent highlight and the child one.
> > 
> > Since everything is done document by document, I don't see any issue regarding the sharding (I'm quite far from an expert in that area though).
> > 
> > I don't know yet how to properly get the data of the children, but I would probably get a lot of inspiration from the fetch phase.
> > 
> > Since I haven't started to code and I don't know that much elasticsearch code, at least does that makes sense ?
> > 
> > Nicolas

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [September 24, 2011, 6:16pm UTC](https://discuss.elastic.co/t/highlighting-with-parent-child-queries/5220/4 "2011-09-24T18:16:07Z")

</div>

Heya, I'll have a look at the implementation, can you squash the commits so  
it will be simpler to review it?

2011/9/22 Nicolas Lalevée [nicolas.lalevee@hibnet.org](mailto:nicolas.lalevee@hibnet.org)

> As always, I've been busy before be able to actually starting to work on  
> it. But here it is, I have a working prototype.  
> You can see it in the branch "children" on my github [1].
> 
> It is nicely working with the TopChildrenQuery, but not with the  
> BlockJoinQuery. Whereas it is pretty simple to work with real Lucene  
> document with the parent/child model, it is not with the nested document  
> model.  
> And since I am interested myself only the TopChildrenQuery, I have not dug  
> further. I would be happy to correctly implement it if I was given some  
> hints.
> 
> Any comment on the code I wrote will be greatly appreciated.
> 
> If interested, I can make it a pull request on master and also work on  
> patching the doc.
> 
> Nicolas
> 
> [1] [Commits · hibnico/elasticsearch · GitHub](https://github.com/nlalevee/elasticsearch/commits/children)
> 
> Le 29 août 2011 à 13:20, Nicolas Lalevée a écrit :
> 
> > No news so I'll start working on it.
> > 
> > Nicolas
> > 
> > Le 22 août 2011 à 17:17, Nicolas Lalevée a écrit :
> > 
> > > I am quite interested to use the top\_children query but I would need to  
> > > get the info about the children, mainly their ids and some highlight. I know  
> > > it is not implemented and I would like to provide an implementation.
> > > 
> > > First, does anybody is already working on it ?
> > > 
> > > If not, here is a suggested API.  
> > > On the query side, we would specify we want the children to be returned  
> > > along with their parent data, and optionally some highlighting on the  
> > > children fields.  
> > > {  
> > > "query": {  
> > > "top\_children" : {  
> > > "type": "subcontent",  
> > > "query" : {  
> > > "term" : {  
> > > "name" : "bike"  
> > > }  
> > > }  
> > > "score" : "max",  
> > > "factor" : 5,  
> > > "incremental\_factor" : 2  
> > > }  
> > > },  
> > > "children": { // just having this tags means we at least want the ids  
> > > of the children  
> > > "size" : 2, // maximum number of children by parent to return  
> > > "full\_data" : false, // if true return not just the id of the  
> > > child but also its data  
> > > "highlight" : { // same syntax as for normal queries  
> > > "fields" : {  
> > > "name" : {}  
> > > }  
> > > }  
> > > }  
> > > }
> > > 
> > > Then as results we would have something like:  
> > > "hits" : {  
> > > "total" : 7,  
> > > "max\_score" : 3.366573  
> > > "hits" : [  
> > > {  
> > > "\_index" : "es",  
> > > "\_type" : "twitter",  
> > > "\_id" : 8001,  
> > > "\_score" : 3.366573,  
> > > "children": {  
> > > "total" : 4,  
> > > "hits" : [ // hits on children of this current parent,  
> > > ordered by score  
> > > {  
> > > "\_id" : 654,  
> > > "highlight" : {  
> > > "name" : ["my lovely _bike_"]  
> > > }  
> > > },  
> > > {  
> > > "\_id" : 987,  
> > > "highlight" : {  
> > > "name" : ["my nice _bike_"]  
> > > }  
> > > }  
> > > ]  
> > > }  
> > > },  
> > > {  
> > > "\_index" : "es",  
> > > "\_type" : "twitter",  
> > > "\_id" : 8004,  
> > > .... etc....  
> > > }
> > > 
> > > With this structure I guess we cover it all.
> > > 
> > > Now about the implementation.
> > > 
> > > First the information about the children needs to be kept along between  
> > > the time the query is executed and the time the highlight phase happen. The  
> > > simplest way of doing that seems to have the query implementation holding  
> > > it. Then later on, the highlight having access to the context and thus to  
> > > the query, the info on the children/parent association is accessible and  
> > > ordered by score.  
> > > I am starting to think about an interface implemented by both the  
> > > TopChildrenQuery and the BlockJoinQuery which would provide child info for a  
> > > parent doc, ordered by score.
> > > 
> > > We would also need an implementation of FieldQuery which will only  
> > > lookup to decompose the sub queries of TopChildrenQuery and BlockJoinQuery.  
> > > Idem, an interface would expose on both queries an accessor to the query on  
> > > the children.
> > > 
> > > About the highlighting of the children, the current code if  
> > > HighlightPhase seems to fit at almost 80%. I guess a refactor is needed to  
> > > extract from that code a ESHighlighter which would be used by both the  
> > > parent highlight and the child one.
> > > 
> > > Since everything is done document by document, I don't see any issue  
> > > regarding the sharding (I'm quite far from an expert in that area though).
> > > 
> > > I don't know yet how to properly get the data of the children, but I  
> > > would probably get a lot of inspiration from the fetch phase.
> > > 
> > > Since I haven't started to code and I don't know that much elasticsearch  
> > > code, at least does that makes sense ?
> > > 
> > > Nicolas

---

<div class="post-metadata">

### Author: ![Nicolas\_Lalevee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nicolas_lalevee/32/2892_2.png) [@Nicolas\_Lalevee](https://discuss.elastic.co/u/Nicolas_Lalevee)
#### Post date: [September 25, 2011, 12:31pm UTC](https://discuss.elastic.co/t/highlighting-with-parent-child-queries/5220/5 "2011-09-25T12:31:41Z")

</div>

done on my master.

cheers,  
Nicolas

Le 24 sept. 2011 à 20:16, Shay Banon a écrit :

> Heya, I'll have a look at the implementation, can you squash the commits so it will be simpler to review it?
> 
> 2011/9/22 Nicolas Lalevée [nicolas.lalevee@hibnet.org](mailto:nicolas.lalevee@hibnet.org)  
> As always, I've been busy before be able to actually starting to work on it. But here it is, I have a working prototype.  
> You can see it in the branch "children" on my github [1].
> 
> It is nicely working with the TopChildrenQuery, but not with the BlockJoinQuery. Whereas it is pretty simple to work with real Lucene document with the parent/child model, it is not with the nested document model.  
> And since I am interested myself only the TopChildrenQuery, I have not dug further. I would be happy to correctly implement it if I was given some hints.
> 
> Any comment on the code I wrote will be greatly appreciated.
> 
> If interested, I can make it a pull request on master and also work on patching the doc.
> 
> Nicolas
> 
> [1] [Commits · hibnico/elasticsearch · GitHub](https://github.com/nlalevee/elasticsearch/commits/children)
> 
> Le 29 août 2011 à 13:20, Nicolas Lalevée a écrit :
> 
> > No news so I'll start working on it.
> > 
> > Nicolas
> > 
> > Le 22 août 2011 à 17:17, Nicolas Lalevée a écrit :
> > 
> > > I am quite interested to use the top\_children query but I would need to get the info about the children, mainly their ids and some highlight. I know it is not implemented and I would like to provide an implementation.
> > > 
> > > First, does anybody is already working on it ?
> > > 
> > > If not, here is a suggested API.  
> > > On the query side, we would specify we want the children to be returned along with their parent data, and optionally some highlighting on the children fields.  
> > > {  
> > > "query": {  
> > > "top\_children" : {  
> > > "type": "subcontent",  
> > > "query" : {  
> > > "term" : {  
> > > "name" : "bike"  
> > > }  
> > > }  
> > > "score" : "max",  
> > > "factor" : 5,  
> > > "incremental\_factor" : 2  
> > > }  
> > > },  
> > > "children": { // just having this tags means we at least want the ids of the children  
> > > "size" : 2, // maximum number of children by parent to return  
> > > "full\_data" : false, // if true return not just the id of the child but also its data  
> > > "highlight" : { // same syntax as for normal queries  
> > > "fields" : {  
> > > "name" : {}  
> > > }  
> > > }  
> > > }  
> > > }
> > > 
> > > Then as results we would have something like:  
> > > "hits" : {  
> > > "total" : 7,  
> > > "max\_score" : 3.366573  
> > > "hits" : [  
> > > {  
> > > "\_index" : "es",  
> > > "\_type" : "twitter",  
> > > "\_id" : 8001,  
> > > "\_score" : 3.366573,  
> > > "children": {  
> > > "total" : 4,  
> > > "hits" : [ // hits on children of this current parent, ordered by score  
> > > {  
> > > "\_id" : 654,  
> > > "highlight" : {  
> > > "name" : ["my lovely _bike_"]  
> > > }  
> > > },  
> > > {  
> > > "\_id" : 987,  
> > > "highlight" : {  
> > > "name" : ["my nice _bike_"]  
> > > }  
> > > }  
> > > ]  
> > > }  
> > > },  
> > > {  
> > > "\_index" : "es",  
> > > "\_type" : "twitter",  
> > > "\_id" : 8004,  
> > > .... etc....  
> > > }
> > > 
> > > With this structure I guess we cover it all.
> > > 
> > > Now about the implementation.
> > > 
> > > First the information about the children needs to be kept along between the time the query is executed and the time the highlight phase happen. The simplest way of doing that seems to have the query implementation holding it. Then later on, the highlight having access to the context and thus to the query, the info on the children/parent association is accessible and ordered by score.  
> > > I am starting to think about an interface implemented by both the TopChildrenQuery and the BlockJoinQuery which would provide child info for a parent doc, ordered by score.
> > > 
> > > We would also need an implementation of FieldQuery which will only lookup to decompose the sub queries of TopChildrenQuery and BlockJoinQuery. Idem, an interface would expose on both queries an accessor to the query on the children.
> > > 
> > > About the highlighting of the children, the current code if HighlightPhase seems to fit at almost 80%. I guess a refactor is needed to extract from that code a ESHighlighter which would be used by both the parent highlight and the child one.
> > > 
> > > Since everything is done document by document, I don't see any issue regarding the sharding (I'm quite far from an expert in that area though).
> > > 
> > > I don't know yet how to properly get the data of the children, but I would probably get a lot of inspiration from the fetch phase.
> > > 
> > > Since I haven't started to code and I don't know that much elasticsearch code, at least does that makes sense ?
> > > 
> > > Nicolas

---

<div class="post-metadata">

### Author: ![Frifri](https://avatars.discourse-cdn.com/v4/letter/f/a88e4f/32.png) [@Frifri](https://discuss.elastic.co/u/Frifri)
#### Post date: [October 25, 2011, 9:55pm UTC](https://discuss.elastic.co/t/highlighting-with-parent-child-queries/5220/6 "2011-10-25T21:55:29Z")

</div>

Hey Nicolas, i compiled your 0.18 snapshot and got it to work in principle.

If I curl a query like you proposed and there the search string doesn't  
match anything, everything is fine and i just get an empty result.  
But in contrast, if I search for something existing, ES throws a  
Nullpointer exception instead of showing any result:

- "error" : "SearchPhaseExecutionException[Failed to execute phase  
[query\_fetch], total failure; shardFailures {NullPointerException[null]}]",  
"status" : 500\*

Looks like some kind of a bug to me because the rest is working fine.

I can attach the query if you want it.

Thanks for your help!

---

<div class="post-metadata">

### Author: ![Nicolas\_Lalevee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nicolas_lalevee/32/2892_2.png) [@Nicolas\_Lalevee](https://discuss.elastic.co/u/Nicolas_Lalevee)
#### Post date: [November 3, 2011, 10:13pm UTC](https://discuss.elastic.co/t/highlighting-with-parent-child-queries/5220/7 "2011-11-03T22:13:36Z")

</div>

Sorry for the late answer, I didn't saw you mail before today.

Regularly I rebase my work on the master of elasticsearch. I did more testing today and it works fine. I am starting to be confident in the current implementation, I am starting to integrate it in our webapp, so probably it will go in prod.

Nicolas

Le 25 oct. 2011 à 23:55, Frifri a écrit :

> Hey Nicolas, i compiled your 0.18 snapshot and got it to work in principle.
> 
> If I curl a query like you proposed and there the search string doesn't match anything, everything is fine and i just get an empty result.  
> But in contrast, if I search for something existing, ES throws a Nullpointer exception instead of showing any result:
> 
> "error" : "SearchPhaseExecutionException[Failed to execute phase [query\_fetch], total failure; shardFailures {NullPointerException[null]}]",  
> "status" : 500
> 
> Looks like some kind of a bug to me because the rest is working fine.
> 
> I can attach the query if you want it.
> 
> Thanks for your help!

---

<div class="post-metadata">

### Author: ![Nick\_Sellen](https://avatars.discourse-cdn.com/v4/letter/n/f0a364/32.png) [@Nick\_Sellen](https://discuss.elastic.co/u/Nick_Sellen)
#### Post date: [January 8, 2012, 3:08pm UTC](https://discuss.elastic.co/t/highlighting-with-parent-child-queries/5220/8 "2012-01-08T15:08:50Z")

</div>

Is this likely to make it into the official version? (looks very useful)

---

<div class="post-metadata">

### Author: ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)
#### Post date: [January 9, 2012, 8:03pm UTC](https://discuss.elastic.co/t/highlighting-with-parent-child-queries/5220/9 "2012-01-09T20:03:53Z")

</div>

It is very useful. The implementation look good, the main problem is that  
its very memory intensive. Not to say that I have a better solution without  
a lot of work, but for now, its not good enough for the general use case  
due to its overhead.

On Sun, Jan 8, 2012 at 5:08 PM, Nick Sellen [talktome@nicksellen.co.uk](mailto:talktome@nicksellen.co.uk)wrote:

> Is this likely to make it into the official version? (looks very useful)

---

<div class="post-metadata">

### Author: ![Nicolas\_Lalevee](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nicolas_lalevee/32/2892_2.png) [@Nicolas\_Lalevee](https://discuss.elastic.co/u/Nicolas_Lalevee)
#### Post date: [February 6, 2012, 5:30pm UTC](https://discuss.elastic.co/t/highlighting-with-parent-child-queries/5220/10 "2012-02-06T17:30:24Z")

</div>

To anyone who was following my branch, after some intense "marketing" debate this feature won't be useful for me.  
I'll still continue to rebase it regularly on the master and then in the incoming 0.19.x branch, but that would be probably all.

cheers,  
Nicolas

Le 9 janv. 2012 à 21:03, Shay Banon a écrit :

> It is very useful. The implementation look good, the main problem is that its very memory intensive. Not to say that I have a better solution without a lot of work, but for now, its not good enough for the general use case due to its overhead.
> 
> On Sun, Jan 8, 2012 at 5:08 PM, Nick Sellen [talktome@nicksellen.co.uk](mailto:talktome@nicksellen.co.uk) wrote:  
> Is this likely to make it into the official version? (looks very useful)

---

<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, 3:40am UTC](https://discuss.elastic.co/t/highlighting-with-parent-child-queries/5220/11 "2017-07-06T03:40:28Z")

</div>


