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