Class: Hyrax::ParentCollectionSearchBuilder

Inherits:
CollectionSearchBuilder show all
Defined in:
app/search_builders/hyrax/parent_collection_search_builder.rb

Overview

Given the id of a work, find the collections it is a member of

Instance Method Summary collapse

Methods inherited from CollectionSearchBuilder

#add_sorting_to_solr, #models, #sort_field

Methods included from FilterByType

#filter_models

Instance Method Details

#include_item_ids(solr_parameters) ⇒ Object

include filters into the query to only include the collection memebers



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

def include_item_ids(solr_parameters)
  solr_parameters[:fq] ||= []
  solr_parameters[:fq] << "child_object_ids_ssim:#{item.id}"
end