/** * 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); }
/** * 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); }