Module: Hyrax::FilterSuppressed
- Extended by:
- ActiveSupport::Concern
- Included in:
- FilterSuppressedWithRoles, SearchFilters
- Defined in:
- app/search_builders/hyrax/filter_suppressed.rb
Overview
Injects a search builder filter to hide documents marked as suppressed
Instance Method Summary collapse
Instance Method Details
#only_active_works(solr_parameters) ⇒ Object
11 12 13 14 |
# File 'app/search_builders/hyrax/filter_suppressed.rb', line 11 def only_active_works(solr_parameters) solr_parameters[:fq] ||= [] solr_parameters[:fq] << '-suppressed_bsi:true' end |