Class: ThinkingSphinx::Configuration::DistributedIndices

Inherits:
Object
  • Object
show all
Defined in:
lib/thinking_sphinx/configuration/distributed_indices.rb

Instance Method Summary collapse

Constructor Details

#initialize(indices) ⇒ DistributedIndices

Returns a new instance of DistributedIndices.



4
5
6
# File 'lib/thinking_sphinx/configuration/distributed_indices.rb', line 4

def initialize(indices)
  @indices = indices
end

Instance Method Details

#reconcileObject



8
9
10
11
12
# File 'lib/thinking_sphinx/configuration/distributed_indices.rb', line 8

def reconcile
  grouped_indices.each do |reference, indices|
    append distributed_index(reference, indices)
  end
end