From c92805d02e46b80a21794c182e8f15b0e7e24bff Mon Sep 17 00:00:00 2001 From: Adrien Brault Date: Fri, 19 Jan 2018 18:06:49 +0100 Subject: [PATCH] Use modified PRE_MANAGER_CREATE indexSettings --- 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 );