/** * After change Catalog Search Type process * * @return $this */ protected function _afterSave() { $newValue = $this->getValue(); $oldValue = $this->_config->getValue(Fulltext::XML_PATH_CATALOG_SEARCH_TYPE, $this->getScope(), $this->getScopeId()); if ($newValue != $oldValue) { $this->_catalogSearchFulltext->resetSearchResults(); } return $this; }
/** * After change Catalog Search Type process * * @return $this */ protected function _afterSave() { $newValue = $this->getValue(); $oldValue = $this->_config->getValue(Fulltext::XML_PATH_CATALOG_SEARCH_TYPE, $this->getScope(), $this->getScopeId()); if ($newValue != $oldValue) { $this->_catalogSearchFulltext->resetSearchResults(); $indexer = $this->indexerFactory->create(); $indexer->load(FulltextIndexer::INDEXER_ID); $indexer->invalidate(); } return $this; }