public function getDocumentScore()
    {
        if (!$this->valid()) {
            throw new \LogicException('Document score is available only while iterating over results.');
        }

        if (!isset($this->documents[$this->key]['_score'])) {
            return null;
        }

        return $this->documents[$this->key]['_score'];
    }
public function getDocumentScore()
    {
        if (!$this->valid()) {
            throw new \LogicException('Document score is available only while iterating over results.');
        }

        if (!isset($this->documents[$this->key]['_score'])) {
            return null;
        }

        return $this->documents[$this->key]['_score'];
    }
public function getDocumentScore ( ) { if ( ! $ this -> valid ( ) ) { throw new \ LogicException ( 'Document score is available only while iterating over results.' ) ; } if ( ! isset ( $ this -> documents [ $ this -> key ] [ '_score' ] ) ) { return null ; } return $ this -> documents [ $ this -> key ] [ '_score' ] ; }
Returns score of current hit.

@return int
Returns score of current hit .