Skip to content

Commit

Permalink
Fix ONGRElasticsearchExtension with multiple mappers with config (han…
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-rath authored Feb 14, 2022
1 parent 58aa902 commit b5ba2e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DependencyInjection/ONGRElasticsearchExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function load(array $configs, ContainerBuilder $container)

$managers = $config['managers'];
foreach ($managers as &$manager) {
$manager['mappings'] = array_unique($manager['mappings']);
$manager['mappings'] = array_unique($manager['mappings'], SORT_REGULAR);
}
$container->setParameter('es.cache', $config['cache']);
$container->setParameter('es.analysis', $config['analysis']);
Expand Down

0 comments on commit b5ba2e3

Please sign in to comment.