src/Search/Framework/IndexDocument.php
public function getField($id)
    {
        if (!isset($this->_fields[$id])) {
            $this->$id = ''; // @see SearchIndexDocument::__set()
        }
        return $this->_fields[$id];
    }
public function getField($id)
    {
        if (!isset($this->_fields[$id])) {
            $this->$id = ''; // @see SearchIndexDocument::__set()
        }
        return $this->_fields[$id];
    }
public function getField ( $ id ) { if ( ! isset ( $ this -> _fields [ $ id ] ) ) { $ this -> $ id = '' ; // @see SearchIndexDocument::__set() } return $ this -> _fields [ $ id ] ; }
Returns a field that is attached to this document.

If the field is not attached to this document, a field is attached with
an empty string as it's value.

@param string $id
The unique identifier of the field.

@return IndexField
Returns a field that is attached to this document .