def update file
    solr_doc = om_document(File.new(file)).to_solr
    delete solr_doc["id"]
    solr.add solr_doc
    add_components(file) unless options[:simple]
    solr.commit
  end
def update file
    solr_doc = om_document(File.new(file)).to_solr
    delete solr_doc["id"]
    solr.add solr_doc
    add_components(file) unless options[:simple]
    solr.commit
  end
Updates your ead from a given file by first deleting the existing ead document and
 any component documents, then creating a new index from the supplied file.
 This method will also commit the results to your solr server when complete.