sphinx\ActiveRecord callSnippets()

callSnippets() public static method

Builds a snippet from provided data and query, using specified index settings.

public static string|array callSnippets ( $source, $match, $options = [] )
$source string|array

Is the source data to extract a snippet from. It could be either a single string or array of strings.

$match string

The full-text query to build snippets for.

$options array

List of options in format: optionName => optionValue

return string|array

Built snippet in case "source" is a string, list of built snippets in case "source" is an array.

doc_Yii
2016-10-30 17:11:34
Comments
Leave a Comment

Please login to continue.