Description
Based on script implemented in OAK-7122 and running it against a test index it was observed that some of the relative fields were not getting indexed. This happens because the ChildNodeStateProvider#children does not handle the immediate children check properly. It would fail for case like
/a /a/b /a/b/c /a/d /a/d/e
Currently it would only report 'b' as child of 'a'.