Sha256: 37dc80d18e3df023630a8171ff2dce29d452afc093f49a66d7705f2a3e9627d4
Contents?: true
Size: 666 Bytes
Versions: 1
Compression:
Stored size: 666 Bytes
Contents
# The Worker that actually performs the delta indexing # This class performs the indexing asyncronously for Workling configurations class WorklingDelta::Worker < Workling::Base #perform the index #@option options [String] :index_name the name of the index to run the delta job on #@option options [Integer, nil] :document_id the sphinx document id of the object that needs to be flagged as deleted def index(options = {}) ThinkingSphinx::Deltas::DeltaJob.new(options[:index_name]).perform if options[:document_id] ThinkingSphinx::Deltas::FlagAsDeletedJob.new(options[:index_name], options[:document_id]).perform end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
workling_delta_indexer-0.1.2 | lib/workling_delta/worker.rb |