ExportRequest exportRequest = new ExportRequest(RestActions.splitIndices(request.param("index")));
if (request.hasParam("ignore_indices")) {
exportRequest.ignoreIndices(IgnoreIndices.fromString(request.param("ignore_indices")));
}
exportRequest.listenerThreaded(false);
try {
BroadcastOperationThreading operationThreading = BroadcastOperationThreading.fromString(request.param("operation_threading"), BroadcastOperationThreading.SINGLE_THREAD);
if (operationThreading == BroadcastOperationThreading.NO_THREADS) {
// since we don't spawn, don't allow no_threads, but change it to a single thread
operationThreading = BroadcastOperationThreading.SINGLE_THREAD;