Sha256: 154fa9e07d20ecdbb1108f2cfb2cf42aa1337c47b95d395de599a7121bdeb68d
Contents?: true
Size: 815 Bytes
Versions: 15
Compression:
Stored size: 815 Bytes
Contents
# frozen_string_literal: true module Hyrax module Stats class WorkStatusSearchBuilder < ::SearchBuilder self.default_processor_chain = [:include_suppressed_facet, :filter_models] # 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 # @param solr_parameters the current solr parameters 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 private def only_works? true end end end end
Version data entries
15 entries across 15 versions & 1 rubygems