コード例 #1
0
ファイル: Fulltext.php プロジェクト: smile-sa/elasticsuite
 /**
  * Execute full indexation
  *
  * @return void
  */
 public function executeFull()
 {
     $storeIds = array_keys($this->storeManager->getStores());
     foreach ($storeIds as $storeId) {
         $dimension = $this->dimensionFactory->create(['name' => 'scope', 'value' => $storeId]);
         $this->indexerHandler->cleanIndex([$dimension]);
         $this->indexerHandler->saveIndex([$dimension], $this->fullAction->rebuildStoreIndex($storeId));
     }
 }
コード例 #2
0
ファイル: Full.php プロジェクト: pradeep-wagento/magento2
 /**
  * Clean search index data for store
  *
  * @param int $storeId
  * @return void
  */
 protected function cleanIndex($storeId)
 {
     $dimension = $this->dimensionFactory->create(['name' => self::SCOPE_FIELD_NAME, 'value' => $storeId]);
     $this->indexHandler->cleanIndex([$dimension]);
 }
コード例 #3
0
ファイル: Full.php プロジェクト: koliaGI/magento2
 /**
  * Delete search index data for store
  *
  * @param int $storeId Store View Id
  * @param array $productIds Product Entity Id
  * @return void
  */
 protected function deleteIndex($storeId = null, $productIds = null)
 {
     $dimension = $this->dimensionFactory->create(['name' => self::SCOPE_FIELD_NAME, 'value' => $storeId]);
     $this->indexHandler->deleteIndex([$dimension], $this->getIterator($productIds));
 }