Class: Hyrax::AdminSetMemberSearchBuilder

Inherits:
SearchBuilder
  • Object
show all
Defined in:
app/search_builders/hyrax/admin_set_member_search_builder.rb

Overview

Builds a query to find the members of an admin set.

Instance Method Summary collapse

Instance Method Details

#in_admin_set(solr_parameters) ⇒ Object

include filters into the query to only include the collection memebers



7
8
9
10
# File 'app/search_builders/hyrax/admin_set_member_search_builder.rb', line 7

def in_admin_set(solr_parameters)
  solr_parameters[:fq] ||= []
  solr_parameters[:fq] << "{!term f=isPartOf_ssim}#{blacklight_params.fetch('id')}"
end