File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ public function buildCommand($workspace = null)
9191 {
9292 $ indexPostfix = time ();
9393 $ indexName = $ this ->createNextIndex ($ indexPostfix );
94- $ this ->updateMapping ();
94+ $ this ->updateMapping ($ indexPostfix );
9595
9696 $ this ->outputLine ();
9797 $ this ->outputLine ('<b>Indexing on %s ...</b> ' , [$ indexName ]);
@@ -282,10 +282,11 @@ protected function createNextIndex($indexPostfix)
282282 * @return void
283283 * @throws \Flowpack\ElasticSearch\ContentRepositoryAdaptor\Exception
284284 */
285- protected function updateMapping ()
285+ protected function updateMapping ($ indexPostfix )
286286 {
287287 $ nodeTypeMappingCollection = $ this ->nodeTypeMappingBuilder ->buildMappingInformation ($ this ->nodeIndexer ->getIndex ());
288288 foreach ($ nodeTypeMappingCollection as $ mapping ) {
289+ $ this ->nodeIndexer ->setIndexNamePostfix ($ indexPostfix );
289290 /** @var Mapping $mapping */
290291 $ mapping ->apply ();
291292 }
You can’t perform that action at this time.
0 commit comments