Bind per-field weights by name
public setFieldWeights ( array $weights ) : |
||
$weights | array | |
Résultat |
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); }