lib/Elastica/Rescore/Query.php
public function setRescoreQuery($rescoreQuery): Query
    {
        $rescoreQuery = BaseQuery::create($rescoreQuery);

        $query = $this->getParam('query');
        $query['rescore_query'] = $rescoreQuery;

        return $this->setParam('query', $query);
    }
public function setRescoreQuery($rescoreQuery): Query
    {
        $rescoreQuery = BaseQuery::create($rescoreQuery);

        $query = $this->getParam('query');
        $query['rescore_query'] = $rescoreQuery;

        return $this->setParam('query', $query);
    }
public function setRescoreQuery ( $ rescoreQuery ) : Query { $ rescoreQuery = BaseQuery :: create ( $ rescoreQuery ) ; $ query = $ this -> getParam ( 'query' ) ; $ query [ 'rescore_query' ] = $ rescoreQuery ; return $ this -> setParam ( 'query' , $ query ) ; }
Sets rescoreQuery object.

@param string|\Elastica\Query|\Elastica\Query\AbstractQuery $rescoreQuery

@return $this
Sets rescoreQuery object .