/** * Initializes search engine config and index name. */ public function __construct() { $config = $this->_getHelper()->getEngineConfigData(); parent::__construct($config); if (!isset($config['index'])) { Mage::throwException('Index must be defined for search engine client.'); } $this->setIndex($config['index']); }