solr = server;
batchSize = job.getInt(SolrConstants.COMMIT_SIZE, 1000);
solrMapping = SolrMappingReader.getInstance(job);
delete = job.getBoolean(IndexerMapReduce.INDEXER_DELETE, false);
// parse optional params
params = new ModifiableSolrParams();
String paramString = job.get(IndexerMapReduce.INDEXER_PARAMS);
if (paramString != null) {
String[] values = paramString.split("&");
for (String v : values) {
String[] kv = v.split("=");