setSortMode() public method

Set matches sorting mode
public setSortMode ( integer $mode, string $sortby = '' ) : SphinxClient
$mode integer
$sortby string
return SphinxClient
Ejemplo n.º 1
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testSetSortModeWithNonRelevanceSortWithoutExpressionShouldThrowException()
 {
     $sphinx = new SphinxClient();
     $sphinx->setSortMode(SphinxClient::SPH_SORT_EXPR);
 }
 /**
  * {@inheritdoc}
  */
 public function setSortMode($mode, $sortby = '')
 {
     return $this->proxy->setSortMode($mode, $sortby);
 }