Connect to searchd and generate excerpts (snippets) from given documents for a given query
public buildExcerpts ( array $docs, string $index, string $words, array $opts = [] ) : array | false | ||
$docs | array | array of strings that carry the document contents |
$index | string | name of the index |
$words | string | string that contains the keywords to highlight |
$opts | array | hash which contains additional optional highlighting parameters |
return | array | false | Array of snippets, or false on failure. |