Module: SolrDocHelper
- Included in:
- DatastreamSpecSolrizer, Dor::EditableIndexer, Dor::IdentifiableIndexer, Dor::IdentityMetadataDS, Dor::ProcessableIndexer, Dor::ReleasableIndexer, Dor::RoleMetadataDS, Dor::Workflow::Document, Dor::WorkflowDefinitionDs
- Defined in:
- lib/dor/utils/solr_doc_helper.rb
Instance Method Summary collapse
Instance Method Details
#add_solr_value(solr_doc, field_name, value, field_type = :default, index_types = [:searchable]) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/dor/utils/solr_doc_helper.rb', line 4 def add_solr_value(solr_doc, field_name, value, field_type = :default, index_types = [:searchable]) case field_type when :symbol index_types << field_type end ::Solrizer.insert_field(solr_doc, field_name, value, *index_types) end |