diff --git a/app/MetaGer.php b/app/MetaGer.php index e72535d37daa19b44674992cfe11acc8d53d32cb..8bc3fcde22ae610b2ef6408f6f74e4bafef42329 100644 --- a/app/MetaGer.php +++ b/app/MetaGer.php @@ -1098,7 +1098,7 @@ class MetaGer // matches '[... ]"test satz"[ ...]' while (preg_match("/(^|.+\s)\"(.+)\"(?:\s(.+)|($))/si", $tmp, $match)) { $tmp = $match[1] . $match[3]; - $this->phrases[] = $match[2]; + $this->phrases[] = strtolower($match[2]); } foreach ($this->phrases as $phrase) { $p .= "\"$phrase\", "; diff --git a/app/Models/Result.php b/app/Models/Result.php index f96a01b3a9a9b08291dd1452d8c997ea27fd23de..6107f7ed7b423f72c9e86f5d41f687599f91df68 100644 --- a/app/Models/Result.php +++ b/app/Models/Result.php @@ -144,7 +144,7 @@ class Result $containsPhrase = false; } } - return $containsPhrase ? 1 : 0; + return $containsPhrase ? 0.1 : 0; } # Berechnet den Ranking-Boost durch ??? URL