Module: Hyrax::FilterByType

Instance Method Summary collapse

Instance Method Details

#filter_models(solr_parameters) ⇒ Object

Add queries that excludes everything except for works and collections


10
11
12
13
# File 'app/search_builders/hyrax/filter_by_type.rb', line 10

def filter_models(solr_parameters)
  solr_parameters[:fq] ||= []
  solr_parameters[:fq] << "{!terms f=has_model_ssim}#{models_to_solr_clause}"
end