File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Controller/Adminhtml/Reindex Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 13
13
use Magento \Backend \App \Action \Context ;
14
14
use Magento \Catalog \Api \ProductRepositoryInterface ;
15
15
use Magento \Framework \Controller \ResultFactory ;
16
+ use Magento \Framework \Exception \LocalizedException ;
16
17
use Magento \Framework \Exception \NoSuchEntityException ;
17
18
use Magento \Store \Model \StoreManagerInterface ;
18
19
@@ -110,6 +111,7 @@ public function execute()
110
111
* @param $stores
111
112
* @return void
112
113
* @throws NoSuchEntityException
114
+ * @throws LocalizedException
113
115
*/
114
116
protected function checkAndReindex ($ product , $ stores )
115
117
{
@@ -199,7 +201,7 @@ protected function checkAndReindex($product, $stores)
199
201
$ productIds = [$ product ->getId ()];
200
202
$ productIds = array_merge ($ productIds , $ this ->productHelper ->getParentProductIds ($ productIds ));
201
203
202
- $ this ->productIndexBuilder ->rebuildEntityIds ($ storeId , $ productIds );
204
+ $ this ->productIndexBuilder ->buildIndexList ($ storeId , $ productIds );
203
205
$ this ->messageManager ->addSuccessMessage (
204
206
__ (
205
207
'The Product "%1" (%2) has been reindexed for store "%3 / %4 / %5". ' ,
You can’t perform that action at this time.
0 commit comments