Skip to content

Commit 92f389a

Browse files
Merge pull request #422 from daniellienert/bugfix/include-context-node
BUGFIX: neos_parent_path now includes the given context node
2 parents 6a7b3eb + 79131cd commit 92f389a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Classes/Eel/ElasticSearchQueryBuilder.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,8 @@ public function query(Node $contextNode): QueryBuilderInterface
848848
FindAncestorNodesFilter::create()
849849
)->reverse();
850850

851+
$ancestors = $ancestors->append($contextNode);
852+
851853
$nodeAggregateIdPath = NodeAggregateIdPath::fromNodes($ancestors);
852854

853855
// on indexing, the neos_parent_path is tokenized to contain ALL parent path parts,

0 commit comments

Comments
 (0)