/** * Close Sphinx persistent connection. * * @throws ESphinxException if client is not connected. * @link http://sphinxsearch.com/docs/current.html#api-func-close */ public function closeConnection() { if (!$this->isConnected) { throw new ESphinxException("Sphinx client is already closed"); } $this->sphinxClient->Close(); $this->isConnected = false; }
public function close() { $this->_sphinx->Close(); }