We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc9a629 commit 3a33acdCopy full SHA for 3a33acd
app/code/Magento/Elasticsearch/Model/Indexer/Fulltext/Plugin/Category/Product/Action/Rows.php
@@ -85,11 +85,13 @@ public function afterExecute(
85
$productIds[] = $this->getProductIdsFromIndex($indexTable, $entityIds);
86
}
87
88
- $productIds = array_merge([], ...$productIds);
+ $productIds = array_unique(array_merge([], ...$productIds));
89
if (!empty($productIds)) {
90
$indexer = $this->indexerRegistry->get(FulltextIndexer::INDEXER_ID);
91
if ($indexer->isScheduled()) {
92
$indexer->getView()->getChangelog()->addList($productIds);
93
+ } else {
94
+ $indexer->reindexList($productIds);
95
96
97
0 commit comments