Highlighting
Last updated
What is Highlighting?
Highlighting in Elasticsearch helps users quickly identify the search terms within the returned documents. It works by surrounding the search keywords in the results with special tags, like <em> and </em>, making them visually distinct. This allows users to easily see why a particular document matched their query without having to read the entire document. You can customize the tags used for highlighting, the fields that are highlighted, and even the way the highlighting is performed to suit your specific needs.
Free resources to learn Highlighting
More in stage 5: Controlling Search Results
Highlighting: common questions
Can I learn Highlighting in Hindi?
This lesson is written in English. Once you sign in, open it in the interactive course and ask the AI tutor to explain Highlighting in Hindi or Hinglish. The tutor answers from this lesson’s own text, so it stays on the syllabus, and it runs on your own Google, OpenAI or Anthropic key.
Is this Highlighting tutorial for beginners?
It is lesson 56 of 113 in the free Elasticsearch roadmap, in stage 5, Controlling Search Results. If you are new to Elasticsearch, start from stage 1 and come back here in order; if you already know the earlier stages, this lesson stands on its own.