Class: GeoblacklightMessaging::GeoblacklightEventProcessor::DeleteProcessor

Inherits:
Processor
  • Object
show all
Defined in:
app/services/geoblacklight_messaging/geoblacklight_event_processor/delete_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
# File 'app/services/geoblacklight_messaging/geoblacklight_event_processor/delete_processor.rb', line 4

def process
  index.delete_by_query "layer_slug_s:#{RSolr.solr_escape(id)}"
  index.commit
  true
end