Sha256: 60cf8134fca35202a0d2cd3bb0c76eeb5f6708aa89488a03f9caaad6e26a7c04
Contents?: true
Size: 430 Bytes
Versions: 2
Compression:
Stored size: 430 Bytes
Contents
class ThinkingSphinx::Deltas::DeleteJob def initialize(index_name, document_id) @index_name, @document_id = index_name, document_id end def perform ThinkingSphinx::Connection.pool.take do |connection| connection.execute Riddle::Query.update( @index_name, @document_id, :sphinx_deleted => true ) end rescue Mysql2::Error => error # This isn't vital, so don't raise the error. end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
thinking-sphinx-3.0.4 | lib/thinking_sphinx/deltas/delete_job.rb |
thinking-sphinx-3.0.3 | lib/thinking_sphinx/deltas/delete_job.rb |