Bug/223 batchwise indexing solr

Fixes #223 
With this change, when indexing documents, it is done by batches: both loading the documents from its source, as the sending of it to solr.
Prevents an out of memory when indexing large datasets.