setRankingMode() public method

Set ranking mode
public setRankingMode ( integer $ranker, string $rankexpr = '' ) : SphinxClient
$ranker integer
$rankexpr string
return SphinxClient
Example #1
0
 /**
  * @expectedException \InvalidArgumentException
  */
 public function testSetRankingModeWithExpressionRankerWithoutExpressionShouldThrowException()
 {
     $sphinx = new SphinxClient();
     $sphinx->setRankingMode(SphinxClient::SPH_RANK_EXPR);
 }
 /**
  * {@inheritdoc}
  */
 public function setRankingMode($ranker, $rankexpr = '')
 {
     return $this->proxy->setRankingMode($ranker, $rankexpr);
 }