This commit is contained in:
@@ -348,7 +348,9 @@ func rankSearchResults(query string, results []services.SearchResult) []services
|
||||
}
|
||||
negativeTerms := []string{
|
||||
"shocking", "amazing", "crazy", "must watch", "reaction", "gossip", "celebrity",
|
||||
"thumbnail", "meme", "prank", "drama", "breaking", "viral",
|
||||
"thumbnail", "meme", "prank", "drama", "breaking", "viral", "tutorial",
|
||||
"how to", "review", "walkthrough", "course", "lesson", "podcast", "interview",
|
||||
"premiere pro", "after effects", "explained", "breakdown", "vlog",
|
||||
}
|
||||
type scoredResult struct {
|
||||
item services.SearchResult
|
||||
@@ -379,11 +381,11 @@ func rankSearchResults(query string, results []services.SearchResult) []services
|
||||
}
|
||||
switch result.Source {
|
||||
case "Google Video":
|
||||
score += 3
|
||||
score += 2
|
||||
case "Envato":
|
||||
score += 4
|
||||
score += 5
|
||||
case "Artgrid":
|
||||
score += 4
|
||||
score += 5
|
||||
}
|
||||
scored = append(scored, scoredResult{item: result, score: score})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user