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

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".


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.

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