Skip to content

Commit a43f660

Browse files
committed
MAGETWO-91537: Search synonyms results missing for words including hyphen and numbers
- Removing hyphen from SPECIAL_CHARACTERS constant
1 parent 2eb6f84 commit a43f660

File tree

1 file changed

+9
-2
lines changed
  • lib/internal/Magento/Framework/Search/Adapter/Mysql/Query/Builder

1 file changed

+9
-2
lines changed

lib/internal/Magento/Framework/Search/Adapter/Mysql/Query/Builder/Match.php

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,16 @@
1515
use Magento\Framework\Search\Adapter\Preprocessor\PreprocessorInterface;
1616

1717
/**
18+
* Class for building select where condition.
19+
*
1820
* @api
1921
*/
2022
class Match implements QueryInterface
2123
{
22-
const SPECIAL_CHARACTERS = '-+~/\\<>\'":*$#@()!,.?`=%&^';
24+
/**
25+
* @var string
26+
*/
27+
const SPECIAL_CHARACTERS = '+~/\\<>\'":*$#@()!,.?`=%&^';
2328

2429
const MINIMAL_CHARACTER_LENGTH = 3;
2530

@@ -69,7 +74,7 @@ public function __construct(
6974
}
7075

7176
/**
72-
* {@inheritdoc}
77+
* @inheritdoc
7378
*/
7479
public function build(
7580
ScoreBuilder $scoreBuilder,
@@ -113,6 +118,8 @@ public function build(
113118
}
114119

115120
/**
121+
* Prepare query value for build function.
122+
*
116123
* @param string $queryValue
117124
* @param string $conditionType
118125
* @return string

0 commit comments

Comments
 (0)