File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Classes/Flowpack/ElasticSearch/ContentRepositoryQueueIndexer/Command Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ public function buildCommand($workspace = null)
8080 {
8181 $ indexPostfix = time ();
8282 $ indexName = $ this ->createNextIndex ($ indexPostfix );
83- $ this ->updateMapping ();
83+ $ this ->updateMapping ($ indexPostfix );
8484
8585 $ this ->outputLine ();
8686 $ this ->outputLine ('<b>Indexing on %s ...</b> ' , [$ indexName ]);
@@ -255,10 +255,11 @@ protected function createNextIndex($indexPostfix)
255255 /**
256256 * Update Index Mapping
257257 */
258- protected function updateMapping ()
258+ protected function updateMapping ($ indexPostfix )
259259 {
260260 $ nodeTypeMappingCollection = $ this ->nodeTypeMappingBuilder ->buildMappingInformation ($ this ->nodeIndexer ->getIndex ());
261261 foreach ($ nodeTypeMappingCollection as $ mapping ) {
262+ $ this ->nodeIndexer ->setIndexNamePostfix ($ indexPostfix );
262263 /** @var Mapping $mapping */
263264 $ mapping ->apply ();
264265 }
You can’t perform that action at this time.
0 commit comments