lib/Elastica/Rescore/Query.php
public function setRescoreQueryWeight(float $weight): Query
    {
        $query = $this->getParam('query');
        $query['rescore_query_weight'] = $weight;

        return $this->setParam('query', $query);
    }
public function setRescoreQueryWeight(float $weight): Query
    {
        $query = $this->getParam('query');
        $query['rescore_query_weight'] = $weight;

        return $this->setParam('query', $query);
    }
public function setRescoreQueryWeight ( float $ weight ) : Query { $ query = $ this -> getParam ( 'query' ) ; $ query [ 'rescore_query_weight' ] = $ weight ; return $ this -> setParam ( 'query' , $ query ) ; }
Sets rescore_query_weight.

@param float $weight

@return $this
Sets rescore_query_weight .