Class: CurationConcerns::CollectionMemberSearchBuilder

Inherits:
SearchBuilder
  • Object
show all
Includes:
FilterByType
Defined in:
app/search_builders/curation_concerns/collection_member_search_builder.rb

Instance Method Summary collapse

Methods included from FilterByType

#filter_models

Instance Method Details

#member_of_collection(solr_parameters) ⇒ Object

include filters into the query to only include the collection memebers



14
15
16
17
# File 'app/search_builders/curation_concerns/collection_member_search_builder.rb', line 14

def member_of_collection(solr_parameters)
  solr_parameters[:fq] ||= []
  solr_parameters[:fq] << "#{collection_membership_field}:#{collection.id}"
end