SphinxClient::buildExcerpts

(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.

doc_php
2016-02-24 16:11:55
Comments
Leave a Comment

Please login to continue.