Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 27bba12

Browse files
committed
MAGETWO-57006: [Forwardport] Performance improvement on Catalog Fulltext indexer
1 parent 25bb776 commit 27bba12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Action/DataProvider.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
/**
1515
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
16+
* @SuppressWarnings(PHPMD.TooManyFields)
1617
* @api
1718
* @since 100.0.3
1819
*/
@@ -328,7 +329,7 @@ public function getSearchableAttributes($backendType = null)
328329

329330
$entity = $this->eavConfig->getEntityType(\Magento\Catalog\Model\Product::ENTITY)->getEntity();
330331

331-
foreach ($attributes as $attributeId => $attribute) {
332+
foreach ($attributes as $attribute) {
332333
$attribute->setEntity($entity);
333334
$this->searchableAttributes[$attribute->getAttributeId()] = $attribute;
334335
$this->searchableAttributes[$attribute->getAttributeCode()] = $attribute;

0 commit comments

Comments
 (0)