Backend and Infrastructure

Add Excerpts for Search Results for Drupal 8, 9, and 10

Excerpts are brief snippets of text displayed in search results. They give context to how the search terms relate to the result. Search API provides support for excerpts out of the box.

In this tutorial, we'll:

  • Identify how to apply excerpts to a search index
  • Describe how to add excerpt display to the search view

By the end of this tutorial you should be able to use the Highlight search processor to add excerpts to search results.