public function setIndexWeights(array $weights)
    {
        assert(is_array($weights));
        foreach ($weights as $index => $weight) {
            assert(is_string($index));
            assert(is_int($weight));
        }
        $this->_indexweights = $weights;

        return $this;
    }
public function setIndexWeights(array $weights)
    {
        assert(is_array($weights));
        foreach ($weights as $index => $weight) {
            assert(is_string($index));
            assert(is_int($weight));
        }
        $this->_indexweights = $weights;

        return $this;
    }
public function setIndexWeights ( array $ weights ) { assert ( is_array ( $ weights ) ) ; foreach ( $ weights as $ index => $ weight ) { assert ( is_string ( $ index ) ) ; assert ( is_int ( $ weight ) ) ; } $ this -> _indexweights = $ weights ; return $ this ; }
Bind per-index weights by name.

@param array $weights

@return SphinxClient
Bind per - index weights by name .