Skip to content

Commit 6ee665a

Browse files
committed
TASK: create index method should return the index name
1 parent ae80f17 commit 6ee665a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Classes/Flowpack/ElasticSearch/ContentRepositoryQueueIndexer/Command/NodeIndexQueueCommandController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,14 +162,15 @@ protected function indexWorkspace($workspaceName, $indexPostfix)
162162
}
163163

164164
/**
165-
* Create next index
166165
* @param string $indexPostfix
166+
* @return string
167167
*/
168168
protected function createNextIndex($indexPostfix)
169169
{
170170
$this->nodeIndexer->setIndexNamePostfix($indexPostfix);
171171
$this->nodeIndexer->getIndex()->create();
172172
$this->log(sprintf('action=indexing step=index-created index=%s', $this->nodeIndexer->getIndexName()), LOG_INFO);
173+
return $this->nodeIndexer->getIndexName();
173174
}
174175

175176
/**

0 commit comments

Comments
 (0)