Skip to content

Commit 780c18a

Browse files
committed
Merge pull request #26 from Flowpack/fix-indexing
[BUGFIX] Direct indexing of nodes broken
2 parents cc2fe14 + 4d32875 commit 780c18a

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)