Class: GeoblacklightMessaging::GeoblacklightEventProcessor::UpdateProcessor

Inherits:
Processor
  • Object
show all
Defined in:
app/services/geoblacklight_messaging/geoblacklight_event_processor/update_processor.rb

Instance Attribute Summary

Attributes inherited from Processor

#event

Instance Method Summary collapse

Methods inherited from Processor

#initialize

Constructor Details

This class inherits a constructor from GeoblacklightMessaging::GeoblacklightEventProcessor::Processor

Instance Method Details

#processObject



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