yii\sphinx\MatchExpression::match PHP Method

match() public method

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.
See also: andMatch()
See also: 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;
    }