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.
2 parents 4ce4aac + f3bfb97 commit 3a8d8b2Copy full SHA for 3a8d8b2
dev/tests/integration/testsuite/Magento/Framework/Search/Adapter/Mysql/Builder/Query/MatchTest.php
@@ -29,7 +29,7 @@ protected function setUp()
29
*/
30
public function testBuildQuery($conditionType, $expectedSuffix)
31
{
32
- $conditionPattern = "(MATCH (data_index) AGAINST ('%ssomeValue*' IN BOOLEAN MODE) * %s) AS score";
+ $conditionPattern = "(MATCH (data_index) AGAINST ('%ssomeValue*' IN BOOLEAN MODE) * POW(2, %s)) AS score";
33
$expectedScoreCondition = sprintf($conditionPattern, $expectedSuffix, ScoreBuilder::WEIGHT_FIELD);
34
$expectedSql = "SELECT `someTable`.* FROM `someTable` WHERE (MATCH (data_index) " .
35
"AGAINST ('{$expectedSuffix}someValue*' IN BOOLEAN MODE))";
0 commit comments