Sha256: 840baa4fac16683593c3864c3eebb17a9addb85c76c86f5208b278bef972f120

Contents?: true

Size: 312 Bytes

Versions: 55

Compression:

Stored size: 312 Bytes

Contents

# frozen_string_literal: true

module SolrDocHelper
  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
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
dor-services-9.6.2 lib/dor/utils/solr_doc_helper.rb
dor-services-9.6.1 lib/dor/utils/solr_doc_helper.rb
dor-services-9.6.0 lib/dor/utils/solr_doc_helper.rb
dor-services-9.5.0 lib/dor/utils/solr_doc_helper.rb
dor-services-9.4.0 lib/dor/utils/solr_doc_helper.rb
dor-services-9.3.0 lib/dor/utils/solr_doc_helper.rb
dor-services-9.2.1 lib/dor/utils/solr_doc_helper.rb
dor-services-9.2.0 lib/dor/utils/solr_doc_helper.rb
dor-services-9.1.0 lib/dor/utils/solr_doc_helper.rb
dor-services-9.0.0 lib/dor/utils/solr_doc_helper.rb
dor-services-8.6.0 lib/dor/utils/solr_doc_helper.rb
dor-services-8.5.0 lib/dor/utils/solr_doc_helper.rb
dor-services-8.4.0 lib/dor/utils/solr_doc_helper.rb
dor-services-8.3.0 lib/dor/utils/solr_doc_helper.rb
dor-services-8.2.0 lib/dor/utils/solr_doc_helper.rb
dor-services-8.1.1 lib/dor/utils/solr_doc_helper.rb
dor-services-8.1.0 lib/dor/utils/solr_doc_helper.rb
dor-services-8.0.0 lib/dor/utils/solr_doc_helper.rb
dor-services-7.2.4 lib/dor/utils/solr_doc_helper.rb
dor-services-7.2.3 lib/dor/utils/solr_doc_helper.rb