diff --git a/lib/supplejack/config.rb b/lib/supplejack/config.rb index befb41e..6dbcc63 100644 --- a/lib/supplejack/config.rb +++ b/lib/supplejack/config.rb @@ -52,6 +52,7 @@ module Config facets facets_per_page facets_sort + facet_missing fields label_tag label_class diff --git a/lib/supplejack/url_formats/item_hash.rb b/lib/supplejack/url_formats/item_hash.rb index a936108..e7ac244 100644 --- a/lib/supplejack/url_formats/item_hash.rb +++ b/lib/supplejack/url_formats/item_hash.rb @@ -28,6 +28,7 @@ def to_api_hash hash[:facets] = params[:facets] if params[:facets].present? hash[:facet_pivots] = params[:facet_pivots] if params[:facet_pivots].present? hash[:facets_per_page] = params[:facets_per_page].to_i if params[:facets_per_page].present? + hash[:facet_missing] = params[:facet_missing] if params[:facet_missing].present? hash[:fields] = params[:fields] || Supplejack.fields.join(',') hash[:query_fields] = query_fields if query_fields hash[:solr_query] = params[:solr_query] if params[:solr_query].present?