Sha256: 8b8b03c3f595a9e8f454b963a86d3e0ef68d0dbb3ea7d02e933c95b669ca58c8

Contents?: true

Size: 416 Bytes

Versions: 6

Compression:

Stored size: 416 Bytes

Contents

module Hydra::PCDM
  class CollectionIndexer < ObjectIndexer
    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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
hydra-pcdm-0.8.2 lib/hydra/pcdm/collection_indexer.rb
hydra-pcdm-0.8.1 lib/hydra/pcdm/collection_indexer.rb
hydra-pcdm-0.8.0 lib/hydra/pcdm/collection_indexer.rb
hydra-pcdm-0.8.0.beta1 lib/hydra/pcdm/collection_indexer.rb
hydra-pcdm-0.7.0 lib/hydra/pcdm/collection_indexer.rb
hydra-pcdm-0.6.0 lib/hydra/pcdm/collection_indexer.rb