We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b27bc0 commit cb681abCopy full SHA for cb681ab
app/code/Magento/Search/Model/ResourceModel/SynonymReader.php
@@ -85,6 +85,7 @@ protected function _construct()
85
*/
86
private function queryByPhrase($phrase)
87
{
88
+ $phrase = rtrim($phrase, "-");
89
$matchQuery = $this->fullTextSelect->getMatchQuery(
90
['synonyms' => 'synonyms'],
91
$phrase,
app/code/Magento/Search/Model/SynonymAnalyzer.php
@@ -54,6 +54,8 @@ public function getSynonymsForPhrase($phrase)
54
return $result;
55
}
56
57
58
+
59
$synonymGroups = $this->getSynonymGroupsByPhrase($phrase);
60
61
// Replace multiple spaces in a row with the only one space
0 commit comments