Using Solr to highlight search results
Version: 10.4
Solr has a highlighting feature that enables a query response to include fragments of the documents that match a query. Fragments are a portion of a document field that contains matches from the query and are sometimes also referred to as snippets or passages.
Solr includes these fragments in a special section of the response called the highlighting section. Solr also includes formatting clues that you use to determine how you present these fragments. For more information on highlighting, see the Solr documentation.
To use Solr to highlight search results, you can add highlighting to a custom search type and configure highlighting in a custom search type.