Class: FlyingSphinx::ResqueDelta::DeltaJob

Inherits:
ThinkingSphinx::Deltas::ResqueDelta::DeltaJob
  • Object
show all
Defined in:
lib/flying_sphinx/resque_delta/delta_job.rb

Class Method Summary collapse

Class Method Details

.perform(indices) ⇒ Object

Runs Sphinx’s indexer tool to process the index. Currently assumes Sphinx is running.

Parameters:

  • index (String)

    the name of the Sphinx index



9
10
11
12
13
# File 'lib/flying_sphinx/resque_delta/delta_job.rb', line 9

def self.perform(indices)
  return if skip?(indices)

  FlyingSphinx::IndexRequest.new(indices).perform
end