lib/Elastica/Query.php
public function setRescore($rescore)
    {
        if (\is_array($rescore)) {
            $buffer = [];

            foreach ($rescore as $rescoreQuery) {
                $buffer[] = $rescoreQuery;
            }
        } else {
            $buffer = $rescore;
        }

        return $this->setParam('rescore', $buffer);
    }
public function setRescore($rescore)
    {
        if (\is_array($rescore)) {
            $buffer = [];

            foreach ($rescore as $rescoreQuery) {
                $buffer[] = $rescoreQuery;
            }
        } else {
            $buffer = $rescore;
        }

        return $this->setParam('rescore', $buffer);
    }
public function setRescore ( $ rescore ) { if ( \ is_array ( $ rescore ) ) { $ buffer = [ ] ; foreach ( $ rescore as $ rescoreQuery ) { $ buffer [ ] = $ rescoreQuery ; } } else { $ buffer = $ rescore ; } return $ this -> setParam ( 'rescore' , $ buffer ) ; }
Add a Rescore.

@param mixed $rescore suggestion object

@return $this
Add a Rescore .