예제 #1
0
 /**
  * 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;
 }
예제 #2
0
파일: Type.php 프로젝트: aiesh/magento2
 /**
  * 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;
 }