Class: GeoWorks::GeoblacklightEventProcessor::DeleteProcessor

Inherits:
Processor
  • Object
show all
Defined in:
app/processors/geo_works/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 GeoWorks::GeoblacklightEventProcessor::Processor

Instance Method Details

#processObject



4
5
6
7
8
9
10
# File 'app/processors/geo_works/geoblacklight_event_processor/delete_processor.rb', line 4

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