Description
Facets currently work only when faceted dimension is direct property of selected node e.g.
select \[jcr:path], \[rep:facet(jc/text)] from \[nt:base] where ...
doesn't work but
select \[jcr:path], \[rep:facet(text)] from \[nt:base] where ...
works (assume correct index defs).
The issue is that ast/SelectorImpl#currentOakProperty check if rep:facet(jc/text) is a relative path or not and incorrectly 'feels' that it indeed is - it then proceeds ahead to traverse down a tree with elements [rep:facet(jc, text)] which makes no sense.