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



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

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