/** * Returns the IndexTank_Client * * @return IndexTank_Client */ public function getClient() { if ($this->_client === null) { $options = $this->getOptions(); IndexTank_Client::$defaultOptions = $options; $this->_client = new IndexTank_Client(); } return $this->_client; }
/** * Refreshes the index metadata from IndexTank * * @return void */ public function refreshMeta() { $index = $this->_client->getIndex($this->_name); $this->setOptions($index->toArray()); return $this; }