From ca4e9f83287d6baf833bc325645a4d9cb4d8084b Mon Sep 17 00:00:00 2001
From: Aria <aria@suma-ev.de>
Date: Mon, 8 May 2017 13:24:46 +0200
Subject: [PATCH] Boostfaktor runtergesetzt auf 0.1

---
 app/MetaGer.php       | 2 +-
 app/Models/Result.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/MetaGer.php b/app/MetaGer.php
index e72535d37..8bc3fcde2 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 f96a01b3a..6107f7ed7 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
-- 
GitLab