Ejay
Ejay

Reputation: 3

What is the equivalent of 'index_delta' in Thinking Sphinx v3?

This question is related to this one: Using Delta Indexes for associations in Thinking Sphinx

I have exactly the same dilemma right now. I tried the solution posted by Pat and Claudio but no luck since I'm using Thinking Sphinx version 3.0.6.

I'm using ts delayed delta gem as well.

Upvotes: 0

Views: 67

Answers (1)

pat
pat

Reputation: 16226

This is covered here: https://github.com/pat/thinking-sphinx/issues/780 - but the short answer is:

ThinkingSphinx::Deltas::IndexJob.new('product_delta').perform

If you want to queue it up in Delayed Job, though, then the following is what you're after:

Delayed::Job.enqueue(
  ThinkingSphinx::Deltas::DelayedDelta::DeltaJob.new('product_delta')
)

Upvotes: 1

Related Questions