Skip to content
Snippets Groups Projects
Commit 3dc655ae authored by Aria Givi's avatar Aria Givi
Browse files

Kommentare hinzugefügt

parent 7ec88d78
No related branches found
No related tags found
2 merge requests!859Development,!838Resolve "Ergebnisranking bei Phrasensuchen"
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment