From 16899775f28b6181938b9f15627496dda4d840ad Mon Sep 17 00:00:00 2001 From: Adrien Brault Date: Thu, 10 Jan 2019 18:39:44 +0100 Subject: [PATCH] Use modified PRE_MANAGER_CREATE indexSettings (#834) --- Service/ManagerFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Service/ManagerFactory.php b/Service/ManagerFactory.php index 6b8bbf3f..7432bbaf 100644 --- a/Service/ManagerFactory.php +++ b/Service/ManagerFactory.php @@ -127,14 +127,14 @@ public function createManager($managerName, $connection, $analysis, $managerConf $this->eventDispatcher && $this->eventDispatcher->dispatch( Events::PRE_MANAGER_CREATE, - new PreCreateManagerEvent($client, $indexSettings) + $preCreateEvent = new PreCreateManagerEvent($client, $indexSettings) ); $manager = new Manager( $managerName, $managerConfig, $client->build(), - $indexSettings, + $preCreateEvent->getIndexSettings(), $this->metadataCollector, $this->converter );