Class: GeoblacklightMessaging::GeoblacklightEventProcessor::UpdateProcessor
- Inherits:
-
Processor
- Object
- Processor
- GeoblacklightMessaging::GeoblacklightEventProcessor::UpdateProcessor
- Defined in:
- app/services/geoblacklight_messaging/geoblacklight_event_processor/update_processor.rb
Instance Attribute Summary
Attributes inherited from Processor
Instance Method Summary collapse
Methods inherited from Processor
Constructor Details
This class inherits a constructor from GeoblacklightMessaging::GeoblacklightEventProcessor::Processor
Instance Method Details
#process ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'app/services/geoblacklight_messaging/geoblacklight_event_processor/update_processor.rb', line 4 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 |