Skip to content

Commit ebb06cb

Browse files
committed
BUGFIX: Set dimensions on NodeIndexer
1 parent 73f65a4 commit ebb06cb

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

Classes/Command/NodeIndexCommandController.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,6 @@ class NodeIndexCommandController extends CommandController
143143
* @return void
144144
* @throws \Flowpack\ElasticSearch\ContentRepositoryAdaptor\Exception
145145
* @throws \Flowpack\ElasticSearch\Exception
146-
* @throws StopCommandException
147-
* @throws FilesException
148146
*/
149147
public function indexNodeCommand(string $identifier, string $workspace = null, string $postfix = null): void
150148
{
@@ -166,11 +164,12 @@ public function indexNodeCommand(string $identifier, string $workspace = null, s
166164
}
167165

168166
$this->outputLine();
169-
$this->outputLine('Indexing node "%s" (%s)', [$node->getLabel(), $node->getIdentifier(),]);
170-
$this->outputLine(' workspace: %s', [$workspace->getName()]);
171-
$this->outputLine(' node type: %s', [$node->getNodeType()->getName()]);
172-
$this->outputLine(' dimensions: %s', [json_encode($dimensions)]);
167+
$this->outputLine('Indexing node <b>"%s"</b> (%s)', [$node->getLabel(), $node->getIdentifier(),]);
168+
$this->outputLine(' Workspace: %s', [$workspace->getName()]);
169+
$this->outputLine(' Node type: %s', [$node->getNodeType()->getName()]);
170+
$this->outputLine(' Dimensions: %s', [json_encode($dimensions)]);
173171

172+
$this->nodeIndexer->setDimensions($dimensions);
174173
$this->nodeIndexer->indexNode($node);
175174
};
176175

@@ -191,7 +190,6 @@ public function indexNodeCommand(string $identifier, string $workspace = null, s
191190
$indexInWorkspace($identifier, $iteratedWorkspace);
192191
}
193192
} else {
194-
/** @var Workspace $workspaceInstance */
195193
$workspaceInstance = $this->workspaceRepository->findByIdentifier($workspace);
196194
if ($workspaceInstance === null) {
197195
$this->outputLine('<error>Error: The given workspace (%s) does not exist.</error>', [$workspace]);

0 commit comments

Comments
 (0)