Skip to content

Commit b855438

Browse files
committed
MAGETWO-95294: Mysql search slow on the catalog page
1 parent 6d9995d commit b855438

File tree

2 files changed

+3
-8
lines changed
  • app/code/Magento

2 files changed

+3
-8
lines changed

app/code/Magento/CatalogSearch/Model/ResourceModel/Fulltext/Collection.php

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -568,11 +568,8 @@ public function getFacetedData($field)
568568
public function addCategoryFilter(\Magento\Catalog\Model\Category $category)
569569
{
570570
$this->addFieldToFilter('category_ids', $category->getId());
571-
if ($this->isCurrentEngineMysql()) {
572-
parent::addCategoryFilter($category);
573-
} else {
574-
$this->_productLimitationPrice();
575-
}
571+
$this->_productLimitationPrice();
572+
576573
return $this;
577574
}
578575

@@ -585,9 +582,6 @@ public function addCategoryFilter(\Magento\Catalog\Model\Category $category)
585582
public function setVisibility($visibility)
586583
{
587584
$this->addFieldToFilter('visibility', $visibility);
588-
if ($this->isCurrentEngineMysql()) {
589-
parent::setVisibility($visibility);
590-
}
591585

592586
return $this;
593587
}

app/code/Magento/Elasticsearch/Test/Unit/SearchAdapter/Query/Builder/SortTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ function ($attribute, $context) use ($fieldName) {
121121
}
122122

123123
/**
124+
* @SuppressWarnings(PHPMD.ExcessiveMethodLength)
124125
* @return array
125126
*/
126127
public function getSortProvider()

0 commit comments

Comments
 (0)