Sha256: 491395adff40beb18d8860a48ba8e6e2a21642b6674c3920f1a248e79594bf46

Contents?: true

Size: 368 Bytes

Versions: 5

Compression:

Stored size: 368 Bytes

Contents

module Hydra::PCDM
  class ObjectIndexer < ActiveFedora::IndexingService
    def generate_solr_document
      super.tap do |solr_doc|
        solr_doc['member_ids_ssim'] ||= []
        solr_doc['member_ids_ssim'] += object.member_ids
        solr_doc['member_ids_ssim'].uniq!
        solr_doc['object_ids_ssim'] = object.ordered_object_ids
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hydra-pcdm-0.5.0 lib/hydra/pcdm/object_indexer.rb
hydra-pcdm-0.4.0 lib/hydra/pcdm/object_indexer.rb
hydra-pcdm-0.3.2 lib/hydra/pcdm/object_indexer.rb
hydra-pcdm-0.3.1 lib/hydra/pcdm/object_indexer.rb
hydra-pcdm-0.3.0 lib/hydra/pcdm/object_indexer.rb