Merge pull request #2568 from coreos-inc/fix-postgres-search
Fix search in postgres
This commit is contained in:
commit
cc88cfb6ad
1 changed files with 4 additions and 3 deletions
|
@ -481,6 +481,7 @@ def _get_sorted_matching_repositories(lookup_value, repo_kind='image', include_p
|
||||||
query = (query
|
query = (query
|
||||||
.switch(Repository)
|
.switch(Repository)
|
||||||
.join(RepositorySearchScore)
|
.join(RepositorySearchScore)
|
||||||
|
.group_by(Repository, Namespace, RepositorySearchScore)
|
||||||
.order_by(RepositorySearchScore.score.desc()))
|
.order_by(RepositorySearchScore.score.desc()))
|
||||||
|
|
||||||
return query
|
return query
|
||||||
|
|
Reference in a new issue