app/services/dor_solr_document_builder.rb
def to_solr
    return to_enum(:to_solr) { size } unless block_given?

    benchmark "Indexing resource #{inspect} (est. #{size} items)" do
      base_doc = super

      indexable_resources.each_with_index do |res, idx|
        process_resource_with_logging(res, idx) do
          doc = to_solr_document(res)
          yield base_doc.merge(doc) if doc
        end
      end
    end
  end
##
# Generate solr documents for the DOR resources identified by this object
#
# @return [Enumerator] an enumerator of solr document hashes for indexing
Generate solr documents for the DOR resources identified by this object
Generate solr documents for the DOR resources identified by this object
def to_solr
    return to_enum(:to_solr) { size } unless block_given?
    benchmark "Indexing resource #{inspect} (est. #{size} items)" do
      base_doc = super
      indexable_resources.each_with_index do |res, idx|
        process_resource_with_logging(res, idx) do
          doc = to_solr_document(res)
          yield base_doc.merge(doc) if doc
        end
      end
    end
  end
def to_solr return to_enum ( :to_solr ) { size } unless block_given? benchmark "Indexing resource #{inspect} (est. #{size} items)" do base_doc = super indexable_resources . each_with_index do | res , idx | process_resource_with_logging ( res , idx ) do doc = to_solr_document ( res ) yield base_doc . merge ( doc ) if doc end end end end
Generate solr documents for the DOR resources identified by this object
Generate solr documents for the DOR resources identified by this object
an enumerator of solr document hashes for indexing
an enumerator of solr document hashes for indexing
Enumerator