# File lib/thinking_sphinx/active_record.rb, line 254 def delete_in_index(index, document_id) return unless ThinkingSphinx.sphinx_running? && search_for_id(document_id, index) ThinkingSphinx::Configuration.instance.client.update( index, ['sphinx_deleted'], {document_id => [1]} ) rescue Riddle::ConnectionError, ThinkingSphinx::SphinxError # Not the end of the world if Sphinx isn't running. end