Skip to content

Commit c4c36dc

Browse files
committed
Removed force reindex from the database patch.
1 parent 496a855 commit c4c36dc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/code/Magento/CatalogSearch/Setup/Patch/Data/SetInitialSearchWeightForAttributes.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ public function apply()
6060
$this->state->emulateAreaCode(
6161
\Magento\Framework\App\Area::AREA_CRONTAB,
6262
function () use ($indexer) {
63-
$indexer->reindexAll();
63+
$indexer->getState()
64+
->setStatus(\Magento\Framework\Indexer\StateInterface::STATUS_INVALID)
65+
->save();
6466
}
6567
);
6668
}

0 commit comments

Comments
 (0)