Reworked putMapping due to es api change