Issue #3173873 by shetpooja04: Unused variable $pos in SearchQuery.php, search module
parent
70892a69f4
commit
e0c3bb56f6
|
@ -521,7 +521,7 @@ class SearchQuery extends SelectExtender {
|
||||||
// search expression. So, use string replacement to change this to a
|
// search expression. So, use string replacement to change this to a
|
||||||
// calculated query expression, counting the number of occurrences so
|
// calculated query expression, counting the number of occurrences so
|
||||||
// in the execute() method we can add arguments.
|
// 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);
|
$pieces = explode('i.relevance', $score, 2);
|
||||||
$score = implode('((ROUND(:normalization_' . $this->relevance_count . ', 4)) * i.score * t.count)', $pieces);
|
$score = implode('((ROUND(:normalization_' . $this->relevance_count . ', 4)) * i.score * t.count)', $pieces);
|
||||||
$this->relevance_count++;
|
$this->relevance_count++;
|
||||||
|
|
Loading…
Reference in New Issue