# Is there any option for highlight to highlight the results in "\_source"?

**URL:** <https://discuss.elastic.co/t/is-there-any-option-for-highlight-to-highlight-the-results-in-source/169890>\
**Category:** Elasticsearch\
**Created:** [February 25, 2019, 6:07pm UTC](https://discuss.elastic.co/t/is-there-any-option-for-highlight-to-highlight-the-results-in-source/169890 "2019-02-25T18:07:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Liron1379](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@Liron1379](https://discuss.elastic.co/u/Liron1379)\
**Post date:** [February 25, 2019, 6:07pm UTC](https://discuss.elastic.co/t/is-there-any-option-for-highlight-to-highlight-the-results-in-source/169890/1 "2019-02-25T18:07:21Z")

</div>

Hey,  
I'm writing a node.js application that uses ES,  
I want the results from my search to appear highlighted when they're shown in the HTML.  
How should I use it?  
The best option is that highlight will highlight the relevant words in "\_source".

---

<div class="post-metadata">

**Author:** ![Liron1379](https://avatars.discourse-cdn.com/v4/letter/l/dec6dc/32.png) [@Liron1379](https://discuss.elastic.co/u/Liron1379)\
**Post date:** [March 23, 2019, 3:42pm UTC](https://discuss.elastic.co/t/is-there-any-option-for-highlight-to-highlight-the-results-in-source/169890/2 "2019-03-23T15:42:39Z")

</div>

UP!!!!

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 23, 2019, 3:57pm UTC](https://discuss.elastic.co/t/is-there-any-option-for-highlight-to-highlight-the-results-in-source/169890/3 "2019-03-23T15:57:43Z")

</div>

You can't do that with \_source field but with other fields. Or you can store the full JSon again in another field and highlight it.

---

<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:** [April 20, 2019, 3:57pm UTC](https://discuss.elastic.co/t/is-there-any-option-for-highlight-to-highlight-the-results-in-source/169890/4 "2019-04-20T15:57:44Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
