Hi Greg,
So what RSolr is expecting is a simple hash object for adding. So what
you'd want to do is creating a mapper, that takes your DocumentModel
instance, and convert it into a Hash representation of a Solr doc.
Assuming your model is an ActiveRecord like class:
doc = DocumentModel.first
solr = RSolr.connect
solr_doc = {
:id =>
doc.id,
:title => doc.title
}
response = solr.add solr_doc
Does that make sense?
Matt