BatchIndexingState batchIdxState = batchIdxStateOption.value(options);
if (batchIdxState != null)
builder.batchIndexingState(batchIdxState);
// connection type is a hardcoded setting
builder.connectionType("solr");
Map<String, String> connectionParams = getConnectionParams(options,
oldIndexerDef != null ? oldIndexerDef.getConnectionParams() : null);
if (connectionParams != null)
builder.connectionParams(connectionParams);