Class: WorklingDelta::Worker
- Inherits:
-
Workling::Base
- Object
- Workling::Base
- WorklingDelta::Worker
- Defined in:
- lib/workling_delta/worker.rb
Overview
The Worker that actually performs the delta indexing This class performs the indexing asyncronously for Workling configurations
Instance Method Summary collapse
-
#index(options = {}) ⇒ Object
perform the index.
Instance Method Details
#index(options = {}) ⇒ Object
perform the index
7 8 9 10 11 12 13 14 |
# File 'lib/workling_delta/worker.rb', line 7 def index( = {}) ThinkingSphinx::Deltas::DeltaJob.new([:index_name]).perform if [:document_id] ThinkingSphinx::Deltas::FlagAsDeletedJob.new([:index_name], [:document_id]).perform end end |