Class: Hyrax::Stats::WorkStatusSearchBuilder
- Inherits:
-
SearchBuilder
- Object
- SearchBuilder
- Hyrax::Stats::WorkStatusSearchBuilder
- Defined in:
- app/search_builders/hyrax/stats/work_status_search_builder.rb
Instance Method Summary collapse
-
#include_suppressed_facet(solr_parameters) ⇒ Object
includes the suppressed facet to get information on deposits.
Instance Method Details
#include_suppressed_facet(solr_parameters) ⇒ Object
includes the suppressed facet to get information on deposits. use caution when combining this with other searches as it sets the rows to zero to just get the facet information
11 12 13 14 15 16 17 |
# File 'app/search_builders/hyrax/stats/work_status_search_builder.rb', line 11 def include_suppressed_facet(solr_parameters) solr_parameters.append_facet_fields(IndexesWorkflow.suppressed_field) solr_parameters[:'facet.missing'] = true # we only want the facet counts not the actual data solr_parameters[:rows] = 0 end |