Sha256: 18c390c710e17f8329ad56de195cff4945a57188f6635b986e4c5930e18ab60b

Contents?: true

Size: 642 Bytes

Versions: 47

Compression:

Stored size: 642 Bytes

Contents

# frozen_string_literal: true

module Spotlight
  module Resources
    # Raw solr document uploads
    class JsonUpload < Spotlight::Resource
      store :data, accessors: :json

      # The indexing pipeline for JSON uploads copies the data from the stored
      # `#data` field directly into the indexed document.
      def self.indexing_pipeline
        @indexing_pipeline ||= super.dup.tap do |pipeline|
          pipeline.sources = [Spotlight::Etl::Sources::StoredData]

          pipeline.transforms = [
            Spotlight::Etl::Transforms::IdentityTransform
          ] + pipeline.transforms
        end
      end
    end
  end
end

Version data entries

47 entries across 47 versions & 1 rubygems

Version Path
blacklight-spotlight-4.3.6 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-4.3.5 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-4.3.4 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-4.3.3 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-4.3.2 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-4.3.1 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-4.3.0 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-4.2.0 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-4.1.2 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-4.1.1 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-4.1.0 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-4.0.3 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-4.0.2 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-4.0.1 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-4.0.0 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.6.0.beta10 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.6.0.beta9 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.6.0.beta8 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.5.0.4 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.6.0.beta7 app/models/spotlight/resources/json_upload.rb