Class: Hyrax::Stats::WorkStatusSearchBuilder

Inherits:
SearchBuilder
  • Object
show all
Defined in:
app/search_builders/hyrax/stats/work_status_search_builder.rb

Instance Method Summary collapse

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

Parameters:

  • solr_parameters

    the current solr parameters


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[:"facet.field"].concat([IndexesWorkflow.suppressed_field])
  solr_parameters[:'facet.missing'] = true

  # we only want the facet counts not the actual data
  solr_parameters[:rows] = 0
end