Call to _make_path from indices.put_mapping was passing parameters in the wrong order