Class: Hyrax::CollectionMemberSearchBuilder
- Inherits:
-
SearchBuilder
- Object
- SearchBuilder
- Hyrax::CollectionMemberSearchBuilder
- Includes:
- FilterByType
- Defined in:
- app/search_builders/hyrax/collection_member_search_builder.rb
Overview
This search builder requires that a accessor named “collection” exists in the scope TODO it would be better to pass collection_id in.
Instance Method Summary collapse
-
#member_of_collection(solr_parameters) ⇒ Object
include filters into the query to only include the collection memebers.
Methods included from FilterByType
Instance Method Details
#member_of_collection(solr_parameters) ⇒ Object
include filters into the query to only include the collection memebers
16 17 18 19 |
# File 'app/search_builders/hyrax/collection_member_search_builder.rb', line 16 def member_of_collection(solr_parameters) solr_parameters[:fq] ||= [] solr_parameters[:fq] << "#{collection_membership_field}:#{collection_id}" end |