Class: FlyingSphinx::Commands::IndexSQL

Inherits:
Base
  • Object
show all
Defined in:
lib/flying_sphinx/commands/index_sql.rb

Constant Summary

Constants inherited from Base

Base::DEFAULT_TIMEOUT, Base::ERROR_MESSAGES, Base::INDEX_TIMEOUT

Instance Method Summary collapse

Methods inherited from Base

#call_with_handling

Instance Method Details

#callObject


4
5
6
7
8
9
10
11
12
# File 'lib/flying_sphinx/commands/index_sql.rb', line 4

def call
  if async?
    send_action 'index', indexing_options.merge(:unique => 'true')
  else
    clear_jobs

    run_action 'index', index_timeout, indexing_options
  end
end