public function update($indexName)
{
$index = $this->getRegistered($indexName);
foreach ($index->getTypes() as $type => $typeBody) {
$params = ['index' => $index->getInternalName(), 'type' => $type, 'body' => [$type => $typeBody]];
$this->elasticSearcher->getClient()->indices()->putMapping($params);
}
}