/** * 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); }
/** * @param string $indexerId * @return \Magento\Indexer\Model\IndexerInterface */ private function getIndexer($indexerId) { return $this->indexerFactory->create()->load($indexerId); }