Merge pull request #2531 from coreos-inc/repo-score
Switch to using RepositorySearchScore table for search ranking
This commit is contained in:
commit
c78ec89305
1 changed files with 2 additions and 3 deletions
|
@ -475,9 +475,8 @@ def _get_sorted_matching_repositories(lookup_value, repo_kind='image', include_p
|
|||
|
||||
query = (query
|
||||
.switch(Repository)
|
||||
.join(RepositoryActionCount)
|
||||
.where(RepositoryActionCount.date >= last_week)
|
||||
.order_by(fn.Sum(RepositoryActionCount.count).desc()))
|
||||
.join(RepositorySearchScore)
|
||||
.order_by(RepositorySearchScore.score.desc()))
|
||||
|
||||
return query
|
||||
|
||||
|
|
Reference in a new issue