def add_components file, counter = 1
    components(file).each do |node|
      solr_doc = om_component_from_node(node).to_solr(additional_component_fields(node))
      solr_doc.merge!({Solrizer.solr_name("sort", :sortable, :type => :integer) => counter.to_s})
      solr.add solr_doc
      counter = counter + 1
    end
  end
def add_components file, counter = 1
    components(file).each do |node|
      solr_doc = om_component_from_node(node).to_solr(additional_component_fields(node))
      solr_doc.merge!({Solrizer.solr_name("sort", :sortable, :type => :integer) => counter.to_s})
      solr.add solr_doc
      counter = counter + 1
    end
  end
Creates solr documents for each individual component node in the ead.  Field names
 and values are determined according to the OM terminology outlined in
 SolrEad::Component as well as additional fields taken from the rest of the ead
 document as described in SolrEad::Behaviors#additional_component_fields.

 Fields from both the terminology and #additional_component_fields are all assembled
 into one solr document via the SolrEad::Component#to_solr method.  Any customizations to
 the contents or appearance of the fields can take place within that method.

 Furthermore, one final field is added to the solr document after the #to_solr method.
 A sorting field *sort_i* is added to the document using the index values from the array
 of <c> nodes.  This allows us to preserve the order of <c> nodes as they appear
 in the original ead document.