Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
367f7e6b
Commit
367f7e6b
authored
May 08, 2017
by
Aria Givi
Browse files
Kommentare hinzugefügt
parent
ca4e9f83
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Models/Result.php
View file @
367f7e6b
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment