Class: Arclight::CustomDocument

Inherits:
SolrEad::Document
  • Object
show all
Extended by:
SharedTerminologyBehavior
Includes:
SharedIndexingBehavior
Defined in:
lib/arclight/custom_document.rb

Overview

An Arclight custom document indexing code

Instance Method Summary collapse

Methods included from SharedTerminologyBehavior

add_dates, add_extent, add_searchable_notes, add_unitid

Methods included from SharedIndexingBehavior

#add_date_ranges, #add_digital_content, #add_normalized_title, #clean_facets_array, #digital_objects, #fix_subfield_demarcators, #names_array, #online_content?, #repository_as_configured, #search, #subjects_array, #unitdate_for_range

Instance Method Details

#to_solr(solr_doc = {}) ⇒ Object



31
32
33
34
35
36
37
# File 'lib/arclight/custom_document.rb', line 31

def to_solr(solr_doc = {})
  super
  solr_doc['id'] = Arclight::NormalizedId.new(eadid.first).to_s
  solr_doc['creator_sort'] = creator.to_a.join(', ') if creator.present?
  add_document_fields(solr_doc)
  solr_doc
end