yii\sphinx\ActiveRecord::callKeywords PHP Метод

callKeywords() публичный статический Метод

Returns tokenized and normalized forms of the keywords, and, optionally, keyword statistics.
public static callKeywords ( string $text, boolean $fetchStatistic = false ) : array
$text string the text to break down to keywords.
$fetchStatistic boolean whether to return document and hit occurrence statistics
Результат array keywords and statistics
    public static function callKeywords($text, $fetchStatistic = false)
    {
        $command = static::getDb()->createCommand();
        $command->callKeywords(static::indexName(), $text, $fetchStatistic);
        return $command->queryAll();
    }