Skip to content

Commit 4d32875

Browse files
committed
[BUGFIX] Direct indexing of nodes broken
The fix in pull request 25 broke direct indexing (that is, indexing from the live workspace using node index:build).
1 parent cc2fe14 commit 4d32875

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Classes/Flowpack/ElasticSearch/ContentRepositoryAdaptor/Indexer/NodeIndexingManager.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ public function flushQueues() {
115115
/** @var \TYPO3\TYPO3CR\Domain\Model\NodeInterface $nodeToBeIndexed */
116116
foreach ($this->nodesToBeIndexed as $nodeToBeIndexed) {
117117
if (!isset($this->targetWorkspaceNamesForNodesToBeIndexed[$nodeToBeIndexed->getContextPath()])) {
118-
// No target workspace for indexing found
119-
continue;
118+
$this->nodeIndexer->indexNode($nodeToBeIndexed);
119+
} else {
120+
$this->nodeIndexer->indexNode($nodeToBeIndexed, $this->targetWorkspaceNamesForNodesToBeIndexed[$nodeToBeIndexed->getWorkspace()->getName()]);
120121
}
121-
$this->nodeIndexer->indexNode($nodeToBeIndexed, $this->targetWorkspaceNamesForNodesToBeIndexed[$nodeToBeIndexed->getWorkspace()->getName()]);
122122
}
123123

124124
foreach ($this->nodesToBeRemoved as $nodeToBeRemoved) {

0 commit comments

Comments
 (0)