O'Reilly logo

Apache Solr Enterprise Search Server - Third Edition by Matt Mitchell, Kranti Parisa, Eric Pugh, David Smiley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

The highlight component

You are probably most familiar with search highlighting when you use an Internet search engine such as Google. Most search results come back with a snippet of text from the site containing the word(s) you search for, highlighted. Solr can do the same thing. In the following screenshot, we see Google highlighting a search including Solr and search (in bold):

The highlight component

To conserve screen space, you might even use this feature to simply tell the user that there was a match in certain fields without showing a highlighted value. This could make sense if there are many metadata fields. Nevertheless you would still likely highlight some.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required