Commit 3dc655ae authored by Aria Givi's avatar Aria Givi
Browse files

Kommentare hinzugefügt

parent 7ec88d78
......@@ -96,6 +96,7 @@ class Result
$rank -= $this->calcYandexBoost($eingabe);
}
# Boost für Vorkommen der Suchwörter in der Beschreibung bei Phrasensuchen
if(!empty($phrases)) {
$rank += $this->calcPhraseSearchBoost($phrases);
}
......@@ -136,6 +137,7 @@ class Result
return 0;
}
# Berechnet den Ranking-Boost bei Phrasensuchen
private function calcPhraseSearchBoost($phrases) {
$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