Hi, In this report (https://issues.apache.org/jira/browse/JCR-2846), I found that queries that apply child or descendant constraints on shared nodes do not return the same results if these constraints are expressed with joins or in the where clause. Where clauses work ok, but joins do not . I tried to find a fix but I got lost when it came to drill down to the Lucene code. Apparently, the join merger doesn't consider cloned nodes to be children of their destination node - couldn't find out why...
Does anyone have a clue on this one ? Does this behavior comply with the JCR spec (eg. sections 3.9 and 14.16) ? Regards, Edouard