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 11a57c5 commit f3bfb97Copy full SHA for f3bfb97
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