setMatchMode() 공개 메소드

Set matching mode
public setMatchMode ( integer $mode ) : SphinxClient
$mode integer
리턴 SphinxClient
예제 #1
0
 public function testAddQueryWithError()
 {
     $sphinx = new SphinxClient();
     $sphinx->setMatchMode(SphinxClient::SPH_MATCH_EXTENDED);
     $sphinx->addQuery('@ccc');
     $sphinx->addQuery('dddd');
     $results = $sphinx->runQueries();
     $this->assertEquals(count($results), 2);
     $this->assertGreaterThan(0, strlen($results[0]['error']));
 }
 /**
  * {@inheritdoc}
  */
 public function setMatchMode($mode)
 {
     return $this->proxy->setMatchMode($mode);
 }