class RSolr::Client

def add doc, opts = {}


)
:add_attributes => {:boost=>5.0, :commitWithin=>10}
[{:id=>1, :name=>'one'}, {:id=>2, :name=>'two'}],
solr.update(

update using an array

solr.update(:id=>1, :name=>'one')
single record:

http://wiki.apache.org/solr/UpdateXmlMessages#add.2BAC8-update

+add+ creates xml "add" documents and sends the xml data to the +update+ method
def add doc, opts = {}
  add_attributes = opts.delete :add_attributes
  update opts.merge(:data => xml.add(doc, add_attributes))
end