You are here

public function ItemInterface::getExcerpt in Search API 8

Returns an HTML text with highlighted text-parts that match the query.

Return value

string|null If set, an HTML text containing highlighted portions of the fulltext that match the query. NULL otherwise.

1 method overrides ItemInterface::getExcerpt()
Item::getExcerpt in src/Item/Item.php
Returns an HTML text with highlighted text-parts that match the query.

File

src/Item/ItemInterface.php, line 221

Class

ItemInterface
Represents a search item being indexed or returned as a search result.

Namespace

Drupal\search_api\Item

Code

public function getExcerpt();