Skip to content

Commit d3a9199

Browse files
MAGETWO-58764: [GitHub] Minimal Query Length For Catalog Search #6681
1 parent ab18f7d commit d3a9199

File tree

1 file changed

+2
-7
lines changed
  • app/code/Magento/CatalogGraphQl/Model/Search/Adapter/Mysql/Query/Builder

1 file changed

+2
-7
lines changed

app/code/Magento/CatalogGraphQl/Model/Search/Adapter/Mysql/Query/Builder/Match.php

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,6 @@ class Match extends BuilderMatch
2424
*/
2525
private $searchHelper;
2626

27-
/**
28-
* @var string[]
29-
*/
30-
private $replaceSymbols = [];
31-
3227
/**
3328
* @param ResolverInterface $resolver
3429
* @param Fulltext $fulltextHelper
@@ -52,8 +47,8 @@ public function __construct(
5247
*/
5348
protected function prepareQuery($queryValue, $conditionType)
5449
{
55-
$this->replaceSymbols = str_split(self::SPECIAL_CHARACTERS, 1);
56-
$queryValue = str_replace($this->replaceSymbols, ' ', $queryValue);
50+
$replaceSymbols = str_split(self::SPECIAL_CHARACTERS, 1);
51+
$queryValue = str_replace($replaceSymbols, ' ', $queryValue);
5752
foreach ($this->preprocessors as $preprocessor) {
5853
$queryValue = $preprocessor->process($queryValue);
5954
}

0 commit comments

Comments
 (0)