Ejemplo n.º 1
0
 /**
  * Execute materialization on ids entities
  *
  * @param int[] $ids
  * @return void
  * @api
  */
 public function execute($ids)
 {
     /** @var \Magento\Framework\Indexer\IndexerInterface $indexer */
     $indexer = $this->indexerFactory->create()->load(Fulltext::INDEXER_ID);
     $indexer->reindexList($ids);
 }
Ejemplo n.º 2
0
 /**
  * Retrieve an indexer by its Id
  *
  * @param string $indexerId The indexer Id
  *
  * @return \Magento\Framework\Indexer\IndexerInterface
  */
 private function getIndexer($indexerId)
 {
     return $this->indexerFactory->create()->load($indexerId);
 }