Sha256: 03675cddc85d9af5ec2f4a4d6318dec8cd77634341056e43e9583e53093a600b

Contents?: true

Size: 379 Bytes

Versions: 6

Compression:

Stored size: 379 Bytes

Contents

module GeoWorks
  class GeoblacklightEventProcessor
    class UpdateProcessor < Processor
      def process
        index.update params: { overwrite: true },
                     data: [doc].to_json,
                     headers: { 'Content-Type' => 'application/json' }
        index.commit
        true
      rescue RSolr::Error::Http
        false
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
geo_works-0.2.0 app/processors/geo_works/geoblacklight_event_processor/update_processor.rb
geo_works-0.1.4 app/processors/geo_works/geoblacklight_event_processor/update_processor.rb
geo_works-0.1.3 app/processors/geo_works/geoblacklight_event_processor/update_processor.rb
geo_works-0.1.2 app/processors/geo_works/geoblacklight_event_processor/update_processor.rb
geo_works-0.1.1 app/processors/geo_works/geoblacklight_event_processor/update_processor.rb
geo_works-0.1.0 app/processors/geo_works/geoblacklight_event_processor/update_processor.rb