yii\sphinx\Connection::escapeMatchValue PHP Метод

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

Make sure you are using this method whenever composing 'MATCH' search statement. Note: this method does not perform quoting, you should place the result in the quotes an perform additional escaping for it manually, the best way to do it is using PDO parameter.
public escapeMatchValue ( string $str ) : string
$str string string to be escaped.
Результат string the properly escaped string.
    public function escapeMatchValue($str)
    {
        return str_replace(['\\', '/', '"', '(', ')', '|', '-', '!', '@', '~', '&', '^', '$', '=', '>', '<', "", "\n", "\r", ""], ['\\\\', '\\/', '\\"', '\\(', '\\)', '\\|', '\\-', '\\!', '\\@', '\\~', '\\&', '\\^', '\\$', '\\=', '\\>', '\\<', "\\x00", "\\n", "\\r", "\\x1a"], $str);
    }