Class: Spotlight::Dor::Indexer

Inherits:
GDor::Indexer
  • Object
show all
Defined in:
lib/spotlight/dor/indexer.rb

Overview

Base class to harvest from DOR via harvestdor gem

Instance Method Summary collapse

Instance Method Details

#resource(druid) ⇒ Object



12
13
14
# File 'lib/spotlight/dor/indexer.rb', line 12

def resource(druid)
  Harvestdor::Indexer::Resource.new harvestdor, druid
end

#solr_document(resource) ⇒ Object



16
17
18
19
20
# File 'lib/spotlight/dor/indexer.rb', line 16

def solr_document(resource)
  doc_hash = super
  run_hook :before_index, resource, doc_hash
  doc_hash
end