protected function _saveProductIndexes($storeId, $productIndexes)
 {
     if ($this->config->isEnabledBackEnd(Mage::app()->getStore()->getId()) === false) {
         return parent::_saveProductIndexes($storeId, $productIndexes);
     }
     return $this;
 }
 /**
  * Save multiply product indexes.
  *
  * @param int   $storeId
  * @param array $productIndexes
  * @return Algolia_Algoliasearch_Model_Resource_Fulltext
  */
 protected function _saveProductIndexes($storeId, $productIndexes)
 {
     // Fallback to default catalog search if Algolia search is disabled
     if (!$this->_helper->isEnabled()) {
         return parent::_saveProductIndexes($storeId, $productIndexes);
     }
     Mage::helper('algoliasearch')->rebuildStoreProductIndex($storeId, array_keys($productIndexes), $productIndexes);
     return $this;
 }