RedTuna/mysolr — pull request #19 by fjavieralba (2012-06-01 22:28:47+00:00)
Title: Several changes in responses

Hi,

I've done several changes to mysolr code in order to centralize all Solr responses in one class.

That means, that not only `search` returns a SolrResponse but all methods that request solr in any manner.

For example, `ping`, `update` or `commit` are all returning SolrResponses.

I think that one of the benefits of this new class is that when an indexation error happens (calling `update` with incorrect formatted documents, for example), SolrResponse tries to capture the error message returned by solr.

Another big change is that with this version, no Exceptions are raised when we receive an HTTP 400 error. It simply returns a SolrResponse with that status.

There are several changes in the code so I didn't want to push directly to redtuna/mysolr.

I would like you to review the changes, and discuss/change everything you think necessary.

Thanks in advance!