Skip to content

Commit 3867572

Browse files
committed
TASK: Also add hidden nodes to the indexing job
1 parent 7857c79 commit 3867572

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

  • Classes/Flowpack/ElasticSearch/ContentRepositoryQueueIndexer

Classes/Flowpack/ElasticSearch/ContentRepositoryQueueIndexer/IndexingJob.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,18 @@ public function execute(QueueInterface $queue, Message $message) {
9595
$nodeData = $this->nodeDataRepository->findByIdentifier($node['nodeIdentifier']);
9696
$context = $this->contextFactory->create([
9797
'workspaceName' => $this->workspaceName,
98+
'invisibleContentShown' => true,
99+
'inaccessibleContentShown' => false,
98100
'dimensions' => $node['dimensions']
99101
]);
100102
$currentNode = $this->nodeFactory->createFromNodeData($nodeData, $context);
103+
104+
// Skip this iteration if the node can not be fetched from the current context
101105
if (!$currentNode instanceof NodeInterface) {
102106
$this->logger->log(sprintf('Node with identifier %s could not be processed', $node['nodeIdentifier']));
103107
continue;
104108
}
109+
105110
$this->nodeIndexer->setIndexNamePostfix($this->indexPostfix);
106111
$this->logger->log(sprintf('Process indexing job for %s', $currentNode));
107112
$this->nodeIndexer->indexNode($currentNode);

0 commit comments

Comments
 (0)