Don't have time right now to create a proper pull request, but this monkey patch fixes it in my project:
class ThinkingSphinx::Deltas::DelayedDelta
module SphinxQL
def delete(index, instance)
Delayed::Job.enqueue(
ThinkingSphinx::Deltas::DelayedDelta::FlagAsDeletedJob.new(
index.name,
index.document_id_for_key(instance.send(index.options[:primary_key] || :id))
), self.class.job_options
)
end
end
end
Don't have time right now to create a proper pull request, but this monkey patch fixes it in my project: