yii\sphinx\Command::callSnippets PHP Метод

callSnippets() публичный Метод

Builds a snippet from provided data and query, using specified index settings.
public callSnippets ( string $index, string | array $source, string $match, array $options = [] )
$index string name of the index, from which to take the text processing settings.
$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
    public function callSnippets($index, $source, $match, $options = [])
    {
        $params = [];
        $sql = $this->db->getQueryBuilder()->callSnippets($index, $source, $match, $options, $params);
        return $this->setSql($sql)->bindValues($params);
    }