public function getField($fieldName, $silent = false)
    {
        if (!array_key_exists($fieldName, $this->data) && $silent === false) {
            throw new ElasticSearchException(sprintf('The field %s was not present in data of document in %s/%s.', $fieldName, $this->type->getIndex()->getName(), $this->type->getName()), 1340274696);
        }

        return $this->data[$fieldName];
    }
public function getField($fieldName, $silent = false)
    {
        if (!array_key_exists($fieldName, $this->data) && $silent === false) {
            throw new ElasticSearchException(sprintf('The field %s was not present in data of document in %s/%s.', $fieldName, $this->type->getIndex()->getName(), $this->type->getName()), 1340274696);
        }

        return $this->data[$fieldName];
    }
public function getField ( $ fieldName , $ silent = false ) { if ( ! array_key_exists ( $ fieldName , $ this -> data ) && $ silent === false ) { throw new ElasticSearchException ( sprintf ( 'The field %s was not present in data of document in %s/%s.' , $ fieldName , $ this -> type -> getIndex ( ) -> getName ( ) , $ this -> type -> getName ( ) ) , 1340274696 ) ; } return $ this -> data [ $ fieldName ] ; }
Gets a specific field's value from this' data

@param string $fieldName
@param boolean $silent
@return mixed
@throws ElasticSearchException
Gets a specific field s value from this data