An index such as:
attempts to answer a query such as:
but current this query is planned by this index as
which won't get this result. This is because the depth constraint should've been modified to :depth:[3 TO 3]
Do note that even :ancestors constraint is wrong (too lenient).
So, the correct plan should've looked like:
Similar issue exist for exact and parent path restrictions (these don't need evaluatePathRestriction as well)