Note: this value will be processed by [[Connection::escapeMatchValue()]],
if you need to compose complex match condition use [[Expression]]:
php
$query = new Query();
$query->from('my_index')
->match(new Expression(':match', ['match' => '@(content) ' . Yii::$app->sphinx->escapeMatchValue($matchValue)]))
->all();
public function testMatch() { $query = new Query(); $match = 'test match'; $query->match($match); $this->assertEquals($match, $query->match); $command = $query->createCommand($this->getConnection(false)); $this->assertContains('MATCH(', $command->getSql(), 'No MATCH operator present!'); $this->assertContains($match, $command->params, 'No match query among params!'); }