Sha256: 3b045b2822d280c1c28a9623b85f301a80ae72e6a4cfc7c55d595bac2100d17b

Contents?: true

Size: 425 Bytes

Versions: 1

Compression:

Stored size: 425 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.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

1 entries across 1 versions & 1 rubygems

Version Path
thinking-sphinx-3.0.5 lib/thinking_sphinx/deltas/delete_job.rb