mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-04-16 21:11:01 +00:00
Fixes PostgreSQL search faceting.
This commit is contained in:
parent
fe76c11043
commit
6bdb4cf97f
1 changed files with 1 additions and 1 deletions
|
|
@ -329,7 +329,7 @@ class PostgresSearchResults(BaseSearchResults):
|
|||
field_name=field_name
|
||||
)
|
||||
|
||||
query = self.query_compiler.search(self.backend.get_config(), None, None)
|
||||
query = self.query_compiler.search(self.backend.config, None, None)
|
||||
results = query.values(field_name).annotate(count=Count('pk')).order_by('-count')
|
||||
|
||||
return OrderedDict([
|
||||
|
|
|
|||
Loading…
Reference in a new issue