lib/hydra/pcdm/collection_indexer.rb in hydra-pcdm-0.8.2 vs lib/hydra/pcdm/collection_indexer.rb in hydra-pcdm-0.9.0

- old
+ new

@@ -1,11 +1,8 @@ module Hydra::PCDM - class CollectionIndexer < ObjectIndexer + class CollectionIndexer < PCDMIndexer def generate_solr_document super.tap do |solr_doc| - solr_doc[Config.indexing_member_ids_key] ||= [] - solr_doc[Config.indexing_member_ids_key] += object.member_ids - solr_doc[Config.indexing_member_ids_key].uniq! solr_doc[Config.indexing_collection_ids_key] = object.ordered_collection_ids end end end end