We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ac5552 commit eb51085Copy full SHA for eb51085
lib/blacklight/elasticsearch/response.rb
@@ -111,10 +111,10 @@ def facet_field_aggregations
111
hits = bucket['doc_count']
112
Blacklight::Solr::Response::Facets::FacetItem.new(value: value, hits: hits)
113
end
114
+ next if items.empty?
115
116
options = {}
- facet_field = Blacklight::Solr::Response::Facets::FacetField.new(facet_field_name, items, options.merge(response: self))
117
-
+ facet_field = Blacklight::Solr::Response::Facets::FacetField.new(facet_field_name, items, options)
118
hash[facet_field_name] = facet_field
119
120
# alias all the possible blacklight config names..
0 commit comments