/** * Initialize search engine adapter * * @return Enterprise_Search_Model_Resource_Engine */ protected function _initAdapter() { $this->_adapter = $this->_getAdapterModel('solr'); $this->_adapter->setAdvancedIndexFieldPrefix($this->getFieldsPrefix()); if (!$this->_canAllowCommit()) { $this->_adapter->holdCommit(); } return $this; }
/** * Initialize search engine adapter * * @param array $options * * @return Enterprise_Search_Model_Resource_Engine */ protected function _initAdapterWithParams(array $options = array()) { $this->_adapter = $this->_getAdapterModelWithParams('solr', $options); $this->_adapter->setAdvancedIndexFieldPrefix($this->getFieldsPrefix()); if (!$this->_canAllowCommit()) { $this->_adapter->holdCommit(); } return $this; }