Highlighting

You have probably heard of highlighting or seen it. You may not even know that you are actually using highlighting when you are using the bigger and smaller public search engines on the World Wide Web (WWW). When we talk about highlighting in context of full text search, we usually mean showing which words or phrases from the query were matched in the resulting documents. For example, if we use Google and search for the word lucene, we would see that word bolded in the search results:

Highlighting

It is even more visible on the Microsoft Bing search engine:

In this chapter, we will see how to use Elasticsearch highlighting capabilities to enhance ...

Get Elasticsearch Server - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.