Class: ThinkingSphinx::IndexingStrategies::OneAtATime
- Inherits:
-
Object
- Object
- ThinkingSphinx::IndexingStrategies::OneAtATime
- Defined in:
- lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
Class Method Summary collapse
Class Method Details
.call(indices = [], &block) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb', line 4 def self.call(indices = [], &block) if indices.empty? configuration = ThinkingSphinx::Configuration.instance configuration.preload_indices indices = configuration.indices.select { |index| !(index.distributed? || index.type == 'rt') }.collect &:name end indices.each { |name| block.call [name] } end |