Module: SolrDocHelper

Instance Method Summary collapse

Instance Method Details

#add_solr_value(solr_doc, field_name, value, field_type = :default, index_types = [:searchable]) ⇒ Object


3
4
5
6
7
# File 'lib/dor/utils/solr_doc_helper.rb', line 3

def add_solr_value(solr_doc, field_name, value, field_type = :default, index_types = [:searchable])
  index_types.each { |index_type|
    ::Solrizer::Extractor.insert_solr_field_value(solr_doc, ::ActiveFedora::SolrService.solr_name(field_name, field_type, index_type), value)
  }
end