Solr supports a feature called highlighting that helps end users who are running a query to scan results quickly. Providing a matching term in bold and highlighted the format makes it an extremely satisfying experience for the user. With highlighting, the user can quickly determine the terms they are searching for or make a decision that the provided results do not match their expectations, and lets them move to next query.
Solr comes with a great configuration for highlighting. There are many parameters for fragment sizing, formatting, ordering, backup.alternate behavior, and categorization. Fragments or snippets are parts of the response that contain matching terms.
Solr provides a large list for highlighting fragments. The following are the basic parameters required to start highlighting:
Parameter | Behavior | Default value |
| A Boolean parameter to enable/disable highlighting. |
|
| To specify a method to implement highlighting... |