Modification to the Solr.add method to allow a generator expression to be used for the docs variable.

Internally the method calls len(docs) to get a count of the number of docs added to Solr (for logging purposes). Generator expressions do not have a __len__ method an error is raised if used.