src/Search/Framework/IndexDocument.php
public function addField($id, $value, $name = null)
    {
        $field = $this->_service->newField($id, $value, $name);
        return $this->attachField($field);
    }
public function addField($id, $value, $name = null)
    {
        $field = $this->_service->newField($id, $value, $name);
        return $this->attachField($field);
    }
public function addField ( $ id , $ value , $ name = null ) { $ field = $ this -> _service -> newField ( $ id , $ value , $ name ) ; return $ this -> attachField ( $ field ) ; }
Instantiates and attaches a field to this document.

@return IndexField

@see SearchServiceAbstract::newField()
Instantiates and attaches a field to this document .