# Inner\_hits and highlighting

**URL:** <https://discuss.elastic.co/t/inner-hits-and-highlighting/23442>\
**Category:** Elasticsearch\
**Created:** [April 28, 2015, 3:26pm UTC](https://discuss.elastic.co/t/inner-hits-and-highlighting/23442 "2015-04-28T15:26:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ian\_Battersby](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ian_battersby/32/721_2.png) [@Ian\_Battersby](https://discuss.elastic.co/u/Ian_Battersby)\
**Post date:** [April 28, 2015, 3:26pm UTC](https://discuss.elastic.co/t/inner-hits-and-highlighting/23442/1 "2015-04-28T15:26:59Z")

</div>

Been playing with the new _experimental_ inner\_hits functionality released  
in 1.5.0, mainly with child/parent related documents. It seems to work  
really well but notice that highlighting doesn't seem supported on  
content/fields within inner\_hits; a quick scan of the code-base seems to  
confirm this. Anyone know if this is already under consideration for a  
future release?

Thanks, Ian.

--  
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/6512722f-caa0-4f48-baf0-c255d8685cb0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6512722f-caa0-4f48-baf0-c255d8685cb0%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![nik9000](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nik9000/32/44947_2.png) [@nik9000](https://discuss.elastic.co/u/nik9000)\
**Post date:** [April 28, 2015, 5:17pm UTC](https://discuss.elastic.co/t/inner-hits-and-highlighting/23442/2 "2015-04-28T17:17:23Z")

</div>

If its not in the issues its unlikely that its planned. If it isn't planned  
I think filing an issue is a good thing - just be super clear what you want  
to do with examples in curl/gist form. If it is planned maybe add your  
proposed usage to the issue.

Nik

On Tue, Apr 28, 2015 at 11:26 AM, Ian Battersby [ian.battersby@gmail.com](mailto:ian.battersby@gmail.com)  
wrote:

> Been playing with the new _experimental_ inner\_hits functionality  
> released in 1.5.0, mainly with child/parent related documents. It seems to  
> work really well but notice that highlighting doesn't seem supported on  
> content/fields within inner\_hits; a quick scan of the code-base seems to  
> confirm this. Anyone know if this is already under consideration for a  
> future release?
> 
> Thanks, Ian.
> 
> --  
> 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/6512722f-caa0-4f48-baf0-c255d8685cb0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6512722f-caa0-4f48-baf0-c255d8685cb0%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/6512722f-caa0-4f48-baf0-c255d8685cb0%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6512722f-caa0-4f48-baf0-c255d8685cb0%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAPmjWd2SdkCbZYdrjJE6PJ7TnF7Kce1ke0ZyuVpkVmVpgAW%3DUQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd2SdkCbZYdrjJE6PJ7TnF7Kce1ke0ZyuVpkVmVpgAW%3DUQ%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Itamar\_Syn\_Hershko](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/itamar_syn_hershko/32/725_2.png) [@Itamar\_Syn\_Hershko](https://discuss.elastic.co/u/Itamar_Syn_Hershko)\
**Post date:** [April 28, 2015, 5:19pm UTC](https://discuss.elastic.co/t/inner-hits-and-highlighting/23442/3 "2015-04-28T17:19:30Z")

</div>

I think I've heard the ES team discourage the extensive use of this  
aggregation type, mainly because it is highly expensive. Adding  
highlighting support to it will more than double it's cost, and I'd  
personally vote against it.

--

Itamar Syn-Hershko  
[http://code972.com](http://code972.com) | @synhershko [https://twitter.com/synhershko](https://twitter.com/synhershko)  
Freelance Developer & Consultant  
[Lucene.NET](http://Lucene.NET) committer and PMC member

On Tue, Apr 28, 2015 at 8:17 PM, Nikolas Everett [nik9000@gmail.com](mailto:nik9000@gmail.com) wrote:

> If its not in the issues its unlikely that its planned. If it isn't  
> planned I think filing an issue is a good thing - just be super clear what  
> you want to do with examples in curl/gist form. If it is planned maybe add  
> your proposed usage to the issue.
> 
> Nik
> 
> On Tue, Apr 28, 2015 at 11:26 AM, Ian Battersby [ian.battersby@gmail.com](mailto:ian.battersby@gmail.com)  
> wrote:
> 
> > Been playing with the new _experimental_ inner\_hits functionality  
> > released in 1.5.0, mainly with child/parent related documents. It seems to  
> > work really well but notice that highlighting doesn't seem supported on  
> > content/fields within inner\_hits; a quick scan of the code-base seems to  
> > confirm this. Anyone know if this is already under consideration for a  
> > future release?
> > 
> > Thanks, Ian.
> > 
> > --  
> > 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/6512722f-caa0-4f48-baf0-c255d8685cb0%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6512722f-caa0-4f48-baf0-c255d8685cb0%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/6512722f-caa0-4f48-baf0-c255d8685cb0%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6512722f-caa0-4f48-baf0-c255d8685cb0%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> 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/CAPmjWd2SdkCbZYdrjJE6PJ7TnF7Kce1ke0ZyuVpkVmVpgAW%3DUQ%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd2SdkCbZYdrjJE6PJ7TnF7Kce1ke0ZyuVpkVmVpgAW%3DUQ%40mail.gmail.com)  
> [https://groups.google.com/d/msgid/elasticsearch/CAPmjWd2SdkCbZYdrjJE6PJ7TnF7Kce1ke0ZyuVpkVmVpgAW%3DUQ%40mail.gmail.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/CAPmjWd2SdkCbZYdrjJE6PJ7TnF7Kce1ke0ZyuVpkVmVpgAW%3DUQ%40mail.gmail.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
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/CAHTr4ZtRmigxAk8O-ZKp-cfQ9W5GOQ05Tk58knjcObLtUDLi\_A%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAHTr4ZtRmigxAk8O-ZKp-cfQ9W5GOQ05Tk58knjcObLtUDLi_A%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:17am UTC](https://discuss.elastic.co/t/inner-hits-and-highlighting/23442/4 "2017-07-06T00:17:20Z")

</div>


