You are here

public function ItemInterface::setExcerpt in Search API 8

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

Parameters

string $excerpt: The HTML text with highlighted text-parts that match the query.

Return value

$this

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

File

src/Item/ItemInterface.php, line 231

Class

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

Namespace

Drupal\search_api\Item

Code

public function setExcerpt($excerpt);