# Highlight in child table

**URL:** <https://discuss.elastic.co/t/highlight-in-child-table/3725>\
**Category:** Elasticsearch\
**Created:** [January 3, 2011, 10:48am UTC](https://discuss.elastic.co/t/highlight-in-child-table/3725 "2011-01-03T10:48:12Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![senthil\_prabhu](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@senthil\_prabhu](https://discuss.elastic.co/u/senthil_prabhu)\
**Post date:** [January 3, 2011, 10:48am UTC](https://discuss.elastic.co/t/highlight-in-child-table/3725/1 "2011-01-03T10:48:12Z")

</div>

Hi,  
I am searching with highlight in child table but i am not  
getting the result for highlight. I here mentioned the query for  
searching with highlight.

Qurey:

curl -XGET 'http://localhost:9200/dbp11/metadata/_search' -d  
'{ "query" :{"term" : {"field1" : "arul"} }, "from" : 0, "size" : 100,  
"highlight" : { "tags\_schema" : "styled" ,"pre\_tags" : [ " \<a href=  
"#hl-_-focus"\> \<span id="high-\_-light" style="background-  
color: #FFFF00; color: red;"\>" ] ,"post\_tags" : [ "\</  
span\>" ] ,"fields" : {"field1" : {"fragment\_size" :  
1500,"number\_of\_fragments" : 1000 } } }, "explain" : false,"fields" :  
["field1","field2"] }'

Result:

{"took":0,"\_shards":{"total":5,"successful":5,"failed":0},"hits":  
{"total":1,"max\_score":0.625,"hits":  
[{"\_index":"dbp11","\_type":"metadata","\_id":"4c-M7ySjRi-  
ZVNMIJTnq9Q","\_score":0.625,"fields":  
{"field1":"arul","filed2":"kumar"},"highlight":{"m\_enddoc":null}}]  
}}

Questions:  
Is it possible to highlight in child table, if yes means please give  
me a sample?

---

<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 3, 2011, 10:50am UTC](https://discuss.elastic.co/t/highlight-in-child-table/3725/2 "2011-01-03T10:50:45Z")

</div>

No, highlighting on a child doc (or fetching its content) is still not  
supported.

On Mon, Jan 3, 2011 at 12:48 PM, senthil prabhu [senthilsebi@gmail.com](mailto:senthilsebi@gmail.com)wrote:

> Hi,  
> I am searching with highlight in child table but i am not  
> getting the result for highlight. I here mentioned the query for  
> searching with highlight.
> 
> Qurey:
> 
> curl -XGET '[http://localhost:9200/dbp11/metadata/\_search](http://localhost:9200/dbp11/metadata/_search)' -d  
> '{ "query" :{"term" : {"field1" : "arul"} }, "from" : 0, "size" : 100,  
> "highlight" : { "tags\_schema" : "styled" ,"pre\_tags" : [ " \<a href=  
> "#hl-_-focus"\> \<span id="high-_-light" style="background-  
> color: #FFFF00; color: red;"\>" ] ,"post\_tags" : [ "\</  
> span\>" ] ,"fields" : {"field1" : {"fragment\_size" :  
> 1500,"number\_of\_fragments" : 1000 } } }, "explain" : false,"fields" :  
> ["field1","field2"] }'
> 
> Result:
> 
> {"took":0,"\_shards":{"total":5,"successful":5,"failed":0},"hits":  
> {"total":1,"max\_score":0.625,"hits":  
> [{"\_index":"dbp11","\_type":"metadata","\_id":"4c-M7ySjRi-  
> ZVNMIJTnq9Q","\_score":0.625,"fields":  
> {"field1":"arul","filed2":"kumar"},"highlight":{"m\_enddoc":null}}]  
> }}
> 
> Questions:  
> Is it possible to highlight in child table, if yes means please give  
> me a sample?

---

<div class="post-metadata">

**Author:** ![senthil\_prabhu](https://avatars.discourse-cdn.com/v4/letter/s/9e8a1a/32.png) [@senthil\_prabhu](https://discuss.elastic.co/u/senthil_prabhu)\
**Post date:** [January 3, 2011, 12:29pm UTC](https://discuss.elastic.co/t/highlight-in-child-table/3725/3 "2011-01-03T12:29:48Z")

</div>

thank you...

```
            can i expect this (highlighting on a child doc or

```

fetching its content) feature in next release...

On Jan 3, 3:50 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:

> No, highlighting on a child doc (or fetching its content) is still not  
> supported.
> 
> On Mon, Jan 3, 2011 at 12:48 PM, senthil prabhu [senthils...@gmail.com](mailto:senthils...@gmail.com)wrote:
> 
> > Hi,  
> > I am searching with highlight in child table but i am not  
> > getting the result for highlight. I here mentioned the query for  
> > searching with highlight.
> 
> > Qurey:
> 
> > curl -XGET '[http://localhost:9200/dbp11/metadata/\_search'-d](http://localhost:9200/dbp11/metadata/_search'-d)  
> > '{ "query" :{"term" : {"field1" : "arul"} }, "from" : 0, "size" : 100,  
> > "highlight" : { "tags\_schema" : "styled" ,"pre\_tags" : [ " \<a href=  
> > "#hl-_-focus"\> \<span id="high-_-light" style="background-  
> > color: #FFFF00; color: red;"\>" ] ,"post\_tags" : [ "\</  
> > span\>" ] ,"fields" : {"field1" : {"fragment\_size" :  
> > 1500,"number\_of\_fragments" : 1000 } } }, "explain" : false,"fields" :  
> > ["field1","field2"] }'
> 
> > Result:
> 
> > {"took":0,"\_shards":{"total":5,"successful":5,"failed":0},"hits":  
> > {"total":1,"max\_score":0.625,"hits":  
> > [{"\_index":"dbp11","\_type":"metadata","\_id":"4c-M7ySjRi-  
> > ZVNMIJTnq9Q","\_score":0.625,"fields":  
> > {"field1":"arul","filed2":"kumar"},"highlight":{"m\_enddoc":null}}]  
> > }}
> 
> > Questions:  
> > Is it possible to highlight in child table, if yes means please give  
> > me a sample?

---

<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 3, 2011, 1:39pm UTC](https://discuss.elastic.co/t/highlight-in-child-table/3725/4 "2011-01-03T13:39:55Z")

</div>

Chances for it getting to the next release are low.

On Mon, Jan 3, 2011 at 2:29 PM, senthil prabhu [senthilsebi@gmail.com](mailto:senthilsebi@gmail.com)wrote:

> thank you...
> 
> ```
> can i expect this (highlighting on a child doc or
> 
> ```
> 
> fetching its content) feature in next release...
> 
> On Jan 3, 3:50 pm, Shay Banon [shay.ba...@elasticsearch.com](mailto:shay.ba...@elasticsearch.com) wrote:
> 
> > No, highlighting on a child doc (or fetching its content) is still not  
> > supported.
> > 
> > On Mon, Jan 3, 2011 at 12:48 PM, senthil prabhu \<[senthils...@gmail.com](mailto:senthils...@gmail.com)  
> > wrote:
> > 
> > > Hi,  
> > > I am searching with highlight in child table but i am not  
> > > getting the result for highlight. I here mentioned the query for  
> > > searching with highlight.
> > 
> > > Qurey:
> > 
> > > curl -XGET '[http://localhost:9200/dbp11/metadata/\_search'-d](http://localhost:9200/dbp11/metadata/_search'-d)  
> > > '{ "query" :{"term" : {"field1" : "arul"} }, "from" : 0, "size" : 100,  
> > > "highlight" : { "tags\_schema" : "styled" ,"pre\_tags" : [ " \<a href=  
> > > "#hl-_-focus"\> \<span id="high-_-light" style="background-  
> > > color: #FFFF00; color: red;"\>" ] ,"post\_tags" : [ "\</  
> > > span\>" ] ,"fields" : {"field1" : {"fragment\_size" :  
> > > 1500,"number\_of\_fragments" : 1000 } } }, "explain" : false,"fields" :  
> > > ["field1","field2"] }'
> > 
> > > Result:
> > 
> > > {"took":0,"\_shards":{"total":5,"successful":5,"failed":0},"hits":  
> > > {"total":1,"max\_score":0.625,"hits":  
> > > [{"\_index":"dbp11","\_type":"metadata","\_id":"4c-M7ySjRi-  
> > > ZVNMIJTnq9Q","\_score":0.625,"fields":  
> > > {"field1":"arul","filed2":"kumar"},"highlight":{"m\_enddoc":null}}]  
> > > }}
> > 
> > > Questions:  
> > > Is it possible to highlight in child table, if yes means please give  
> > > me a sample?

---

<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, 4:14am UTC](https://discuss.elastic.co/t/highlight-in-child-table/3725/5 "2017-07-06T04:14:30Z")

</div>


