(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