Class: ThinkingSphinx::Deltas::IndexJob

Inherits:
Object
  • Object
show all
Defined in:
lib/thinking_sphinx/deltas/index_job.rb

Instance Method Summary collapse

Constructor Details

#initialize(index_name) ⇒ IndexJob

Returns a new instance of IndexJob.



4
5
6
# File 'lib/thinking_sphinx/deltas/index_job.rb', line 4

def initialize(index_name)
  @index_name = index_name
end

Instance Method Details

#performObject



8
9
10
11
12
13
14
# File 'lib/thinking_sphinx/deltas/index_job.rb', line 8

def perform
  ThinkingSphinx::Commander.call(
    :index_sql, configuration,
    :indices => [index_name],
    :verbose => !quiet_deltas?
  )
end