Sha256: 4f92564fdb7141cdff8490fa85a84ced36e0510305cf2ec07d1aea2c2d2244cd

Contents?: true

Size: 515 Bytes

Versions: 8

Compression:

Stored size: 515 Bytes

Contents

module Hydra::PCDM
  class PCDMIndexer < ActiveFedora::IndexingService
    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_object_ids_key] = object.ordered_object_ids
        solr_doc[Config.indexing_member_of_collection_ids_key] = object.member_of_collection_ids
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
hydra-pcdm-1.4.0 lib/hydra/pcdm/pcdm_indexer.rb
hydra-pcdm-1.3.0 lib/hydra/pcdm/pcdm_indexer.rb
hydra-pcdm-1.2.0 lib/hydra/pcdm/pcdm_indexer.rb
hydra-pcdm-1.1.0 lib/hydra/pcdm/pcdm_indexer.rb
hydra-pcdm-1.0.1 lib/hydra/pcdm/pcdm_indexer.rb
hydra-pcdm-1.0.0 lib/hydra/pcdm/pcdm_indexer.rb
hydra-pcdm-0.11.0 lib/hydra/pcdm/pcdm_indexer.rb
hydra-pcdm-0.10.0 lib/hydra/pcdm/pcdm_indexer.rb