lib/Elastica/Result.php
public function getData()
    {
        if (isset($this->_hit['fields'])) {
            return isset($this->_hit['_source'])
                ? \array_merge($this->getFields(), $this->getSource())
                : $this->getFields();
        }

        return $this->getSource();
    }
public function getData()
    {
        if (isset($this->_hit['fields'])) {
            return isset($this->_hit['_source'])
                ? \array_merge($this->getFields(), $this->getSource())
                : $this->getFields();
        }

        return $this->getSource();
    }
public function getData ( ) { if ( isset ( $ this -> _hit [ 'fields' ] ) ) { return isset ( $ this -> _hit [ '_source' ] ) ? \ array_merge ( $ this -> getFields ( ) , $ this -> getSource ( ) ) : $ this -> getFields ( ) ; } return $ this -> getSource ( ) ; }
Returns result data.

Checks for partial result data with getFields, falls back to getSource or both

@return array Result data array
Returns result data .