for (let type in indexMapping) {
        yield at(esClient.indices.putMapping({
            index: upgradeIndex,
            type: type,
            body: indexMapping[type]