Insert solr docs batchwise when there are more than 5000 records. Fixes #154