Sha256: 15e4fc052cd239644d9f5ffa0d7fe26b5bba521c96be14ebe9a517c3ce61bda0

Contents?: true

Size: 437 Bytes

Versions: 17

Compression:

Stored size: 437 Bytes

Contents

# frozen_string_literal: true

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

17 entries across 17 versions & 1 rubygems

Version Path
thinking-sphinx-5.6.0 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-5.5.1 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-5.5.0 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-5.4.0 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-5.3.0 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-5.2.1 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-5.2.0 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-5.1.0 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-5.0.0 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-4.4.1 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-4.4.0 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-4.3.2 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-4.3.1 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-4.3.0 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-4.2.0 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-4.1.0 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb
thinking-sphinx-4.0.0 lib/thinking_sphinx/indexing_strategies/one_at_a_time.rb