vendor/plugins/acts_as_solr/lib/solr/importer/array_mapper.rb
# TODO: make merge conflict handling configurable.  as is, the last map fields win.
make merge conflict handling configurable.  as is, the last map fields win.
make merge conflict handling configurable . as is the last map fields win .
def map(orig_data_array)
    mapped_data = {}
    orig_data_array.each_with_index do |data,i|
      mapped_data.merge!(@mapping[i].map(data))
    end
    mapped_data
  end
def map ( orig_data_array ) mapped_data = { } orig_data_array . each_with_index do | data , i | mapped_data . merge! ( @mapping [ i ] . map ( data ) ) end mapped_data end
TODO: make merge conflict handling configurable.
TODO : make merge conflict handling configurable .
orig_data_array
<not_specific>