Skip to content

Commit 8eaf9e9

Browse files
committed
MAGETWO-36982: Create Search Module API to support search functionality.
- MAGETWO-39542: Implement Product::search method - Fixed Full
1 parent d54a53f commit 8eaf9e9

File tree

1 file changed

+6
-2
lines changed
  • app/code/Magento/CatalogSearch/Model/Indexer/Fulltext/Action

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
*/
66
namespace Magento\CatalogSearch\Model\Indexer\Fulltext\Action;
77

8+
use Magento\CatalogSearch\Model\Indexer\Fulltext;
9+
810
/**
911
* @SuppressWarnings(PHPMD.TooManyFields)
1012
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
@@ -178,7 +180,8 @@ public function __construct(
178180
\Magento\Framework\Locale\ResolverInterface $localeResolver,
179181
\Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate,
180182
\Magento\CatalogSearch\Model\Resource\Fulltext $fulltextResource,
181-
\Magento\Framework\Search\Request\DimensionFactory $dimensionFactory
183+
\Magento\Framework\Search\Request\DimensionFactory $dimensionFactory,
184+
\Magento\Indexer\Model\ConfigInterface $indexerConfig
182185
) {
183186
$this->resource = $resource;
184187
$this->catalogProductType = $catalogProductType;
@@ -190,7 +193,8 @@ public function __construct(
190193
$this->scopeConfig = $scopeConfig;
191194
$this->storeManager = $storeManager;
192195
$this->engine = $engine;
193-
$this->indexHandler = $indexHandlerFactory->create();
196+
$configData = $indexerConfig->getIndexer(Fulltext::INDEXER_ID);
197+
$this->indexHandler = $indexHandlerFactory->create(['data' => $configData]);
194198
$this->dateTime = $dateTime;
195199
$this->localeResolver = $localeResolver;
196200
$this->localeDate = $localeDate;

0 commit comments

Comments
 (0)