setIndexWeights() public method

Bind per-index weights by name
public setIndexWeights ( array $weights ) : SphinxClient
$weights array
return SphinxClient
Ejemplo n.º 1
0
 public function testSetIndexWeights()
 {
     $sphinx = new SphinxClient();
     $sphinx->setIndexWeights(array('index1' => 20, 'index2' => 5));
     $this->assertSame($sphinx->indexweights, array('index1' => 20, 'index2' => 5));
 }
 /**
  * {@inheritdoc}
  */
 public function setIndexWeights(array $weights)
 {
     return $this->proxy->setIndexWeights($weights);
 }