(PECL sphinx >= 0.1.0)
Build text snippets
public array SphinxClient::buildExcerpts ( array $docs, string $index, string $words [, array $opts ] )
Connects to searchd, requests it to generate excerpts (snippets) from the given documents, and returns the results.
Parameters:
docs
Array of strings with documents' contents.
index
Index name.
words
Keywords to highlight.
opts
Associative array of additional highlighting options (see below).
Returns:
Returns array of snippets on success or FALSE
on failure.
Please login to continue.