Example #1
0
 /**
  * Execute materialization on ids entities
  *
  * @param int[] $ids
  * @return void
  * @api
  */
 public function execute($ids)
 {
     /** @var \Magento\Indexer\Model\IndexerInterface $indexer */
     $indexer = $this->indexerFactory->create()->load(Fulltext::INDEXER_ID);
     $indexer->reindexList($ids);
 }
Example #2
0
 /**
  * @param string $indexerId
  * @return \Magento\Indexer\Model\IndexerInterface
  */
 private function getIndexer($indexerId)
 {
     return $this->indexerFactory->create()->load($indexerId);
 }