Skip to content

Commit 30a5a86

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

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ public function __construct(
4444
array $preprocessors = []
4545
) {
4646
parent::__construct($resolver, $fulltextHelper, $fulltextSearchMode, $preprocessors);
47-
$this->replaceSymbols = str_split(self::SPECIAL_CHARACTERS, 1);
4847
$this->searchHelper = $searchHelper;
4948
}
5049

@@ -53,6 +52,7 @@ public function __construct(
5352
*/
5453
protected function prepareQuery($queryValue, $conditionType)
5554
{
55+
$this->replaceSymbols = str_split(self::SPECIAL_CHARACTERS, 1);
5656
$queryValue = str_replace($this->replaceSymbols, ' ', $queryValue);
5757
foreach ($this->preprocessors as $preprocessor) {
5858
$queryValue = $preprocessor->process($queryValue);

0 commit comments

Comments
 (0)