Skip to Main Content
Solr in Action
book

Solr in Action

by Trey Grainger, Timothy Potter
March 2014
Intermediate to advanced content levelIntermediate to advanced
664 pages
21h 15m
English
Manning Publications
Content preview from Solr in Action

Chapter 9. Hit highlighting

This chapter covers

  • Highlighting query terms in search results
  • Selecting the best snippets to display for each search result
  • Refining highlighting behavior using optional parameters
  • Improving highlighting performance using FastVectorHighlighter
  • Using Solr’s newest highlighter implementation, PostingsHighlighter

In this chapter, we introduce a core Solr feature, hit highlighting, in which query terms are highlighted in search results. Hit highlighting helps users quickly scan results to determine which results are worth investigating further, or whether they should navigate to the next page, or even issue a different query.

To have a little fun while learning about hit highlighting, we use a dataset containing thousands ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Lucene in Action, Second Edition

Lucene in Action, Second Edition

Erik Hatcher, Michael McCandless, Otis Gospodnetic
Elasticsearch: The Definitive Guide

Elasticsearch: The Definitive Guide

Clinton Gormley, Zachary Tong

Publisher Resources

ISBN: 9781617291029Supplemental ContentPublisher SupportOtherPublisher WebsiteSupplemental ContentPurchase Link