Loading core/modules/search/src/SearchQuery.php +1 −1 Original line number Diff line number Diff line Loading @@ -520,7 +520,7 @@ public function addScore($score, $arguments = [], $multiply = FALSE) { // search expression. So, use string replacement to change this to a // calculated query expression, counting the number of occurrences so // in the execute() method we can add arguments. while (($pos = strpos($score, 'i.relevance')) !== FALSE) { while (strpos($score, 'i.relevance') !== FALSE) { $pieces = explode('i.relevance', $score, 2); $score = implode('((ROUND(:normalization_' . $this->relevance_count . ', 4)) * i.score * t.count)', $pieces); $this->relevance_count++; Loading Loading
core/modules/search/src/SearchQuery.php +1 −1 Original line number Diff line number Diff line Loading @@ -520,7 +520,7 @@ public function addScore($score, $arguments = [], $multiply = FALSE) { // search expression. So, use string replacement to change this to a // calculated query expression, counting the number of occurrences so // in the execute() method we can add arguments. while (($pos = strpos($score, 'i.relevance')) !== FALSE) { while (strpos($score, 'i.relevance') !== FALSE) { $pieces = explode('i.relevance', $score, 2); $score = implode('((ROUND(:normalization_' . $this->relevance_count . ', 4)) * i.score * t.count)', $pieces); $this->relevance_count++; Loading