/** * Init indexing process after product save * * @return void */ public function reindex() { if ($this->_catalogProduct->isDataForProductCategoryIndexerWasChanged($this) || $this->isDeleted()) { $productCategoryIndexer = $this->indexerRegistry->get(Indexer\Product\Category::INDEXER_ID); if (!$productCategoryIndexer->isScheduled()) { $productCategoryIndexer->reindexRow($this->getId()); } } $this->_productFlatIndexerProcessor->reindexRow($this->getEntityId()); }