yii\sphinx\MatchExpression::match PHP 메소드

match() 공개 메소드

The method requires a $condition parameter, and optionally a $params parameter specifying the values to be parsed into the expression. The $condition parameter should be either a string (e.g. '@name "John"') or an array.
또한 보기: andMatch()
또한 보기: orMatch()
public match ( string | array | yii\db\Expression $condition, array $params = [] )
$condition string | array | yii\db\Expression the conditions that should be put in the MATCH expression.
$params array the parameters (name => value) to be parsed into the query.
    public function match($condition, $params = [])
    {
        $this->match = $condition;
        $this->addParams($params);
        return $this;
    }