Sha256: 5f983ceff2c7e92252a319f18554447d3514d5855ec5a67266a3ca4e358d77ab

Contents?: true

Size: 406 Bytes

Versions: 5

Compression:

Stored size: 406 Bytes

Contents

class ThinkingSphinx::IndexingStrategies::OneAtATime
  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
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
thinking-sphinx-3.4.2 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-3.4.1 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-3.4.0 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-3.3.0 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-3.2.0 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb