public function add($index, $type, $id, $data) { return $this->_request($this->_path($index, $type, $id), 'PUT', $data); }
public function index($index, $type, $id, $data) { try { $this->_es->add($index, $type, $id, $data); } catch (Horde_ElasticSearch_Exception $e) { throw new Content_Exception($e); } }