Commit 367f7e6b authored by Aria Givi's avatar Aria Givi
Browse files

Kommentare hinzugefügt

parent ca4e9f83
...@@ -96,6 +96,7 @@ class Result ...@@ -96,6 +96,7 @@ class Result
$rank -= $this->calcYandexBoost($eingabe); $rank -= $this->calcYandexBoost($eingabe);
} }
# Boost für Vorkommen der Suchwörter in der Beschreibung bei Phrasensuchen
if(!empty($phrases)) { if(!empty($phrases)) {
$rank += $this->calcPhraseSearchBoost($phrases); $rank += $this->calcPhraseSearchBoost($phrases);
} }
...@@ -136,6 +137,7 @@ class Result ...@@ -136,6 +137,7 @@ class Result
return 0; return 0;
} }
# Berechnet den Ranking-Boost bei Phrasensuchen
private function calcPhraseSearchBoost($phrases) { private function calcPhraseSearchBoost($phrases) {
$containsPhrase = true; $containsPhrase = true;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment