Skip to content

Commit

Permalink
fix for facet_ranges in search results
Browse files Browse the repository at this point in the history
  • Loading branch information
wardi committed Sep 19, 2017
1 parent d8efbf4 commit 16848e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/search/query.py
Expand Up @@ -387,6 +387,6 @@ def run(self, query):
for field, values in six.iteritems(self.facets):
self.facets[field] = dict(zip(values[0::2], values[1::2]))

self.facet_ranges = solr_response.facets.get('facet_counts', {}).get('facet_ranges', {})
self.facet_ranges = solr_response.facets.get('facet_ranges', {})

return {'results': self.results, 'count': self.count}

0 comments on commit 16848e2

Please sign in to comment.