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-3.5.0.3 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.6.0.beta6 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.6.0.beta5 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.6.0.beta4 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.6.0.beta3 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.6.0.beta1 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.5.0.2 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.5.0.1 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.5.0 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.4.4.1 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.4.4 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.4.3 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.4.2.2 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.4.2.1 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.4.2 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.4.1 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.4.0 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.3.0 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.2.0 app/models/spotlight/resources/json_upload.rb
blacklight-spotlight-3.1.0 app/models/spotlight/resources/json_upload.rb