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
Currently it would only report 'b' as child of 'a'.