Module: Hyrax::FilterByType
- Extended by:
- ActiveSupport::Concern
- Included in:
- CollectionMemberSearchBuilder, CollectionSearchBuilder, HomepageSearchBuilder, My::CollectionsSearchBuilder, My::FindWorksSearchBuilder, My::WorksSearchBuilder, NestedCollectionsParentSearchBuilder, SearchFilters, WorksSearchBuilder
- Defined in:
- app/search_builders/hyrax/filter_by_type.rb
Instance Method Summary collapse
-
#filter_models(solr_parameters) ⇒ Object
Add queries that excludes everything except for works and collections.
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 |