setFieldWeights() public method

Bind per-field weights by name
public setFieldWeights ( array $weights ) : SphinxClient
$weights array
return SphinxClient
Ejemplo n.º 1
0
 public function testSetFieldWeights()
 {
     $sphinx = new SphinxClient();
     $sphinx->setFieldWeights(array('field1' => 10, 'field2' => 200));
     $this->assertSame($sphinx->fieldweights, array('field1' => 10, 'field2' => 200));
 }
 /**
  * {@inheritdoc}
  */
 public function setFieldWeights(array $weights)
 {
     return $this->proxy->setFieldWeights($weights);
 }