Skip to content

Commit 2e56020

Browse files
Slabko,Michael(mslabko)Slabko,Michael(mslabko)
authored andcommitted
Merge pull request #2 from magento-dragons/MAGETWO-44767
MAGETWO-44767: Search term splitted by underscore
2 parents 99626df + 82f0564 commit 2e56020

File tree

2 files changed

+2
-2
lines changed
  • lib/internal/Magento/Framework/Search

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class Match implements QueryInterface
1717
{
18-
const SPECIAL_CHARACTERS = '-+~/\\<>\'":*$#@()!,.?`=%&^_';
18+
const SPECIAL_CHARACTERS = '-+~/\\<>\'":*$#@()!,.?`=%&^';
1919

2020
const MINIMAL_CHARACTER_LENGTH = 3;
2121

lib/internal/Magento/Framework/Search/Test/Unit/Adapter/Mysql/Query/Builder/MatchTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function testBuildQuery()
6464
->getMock();
6565
$this->fulltextHelper->expects($this->once())
6666
->method('getMatchQuery')
67-
->with($this->equalTo(['some_field' => 'some_field']), $this->equalTo('-some* -value*'))
67+
->with($this->equalTo(['some_field' => 'some_field']), $this->equalTo('-some_value*'))
6868
->will($this->returnValue('matchedQuery'));
6969
$select->expects($this->once())
7070
->method('where')

0 commit comments

Comments
 (0)