Hi all, I'd like to find all nodes of a certain type that have a sub node at some level with a certain property that contains a value I'm searching for. The following query works if I have a sub node two levels under the nt:unstructured node:
/jcr:root//element(*, nt:unstructured)[jcr:contains(./*/*/@text, 'test')] order by @jcr:score But I don't know the exact level. So I tried the following: /jcr:root//element(*, nt:unstructured)[jcr:contains(.//@text, 'test')] order by @jcr:score This query doesn't return any hits. But I'd expect the same result set. Any ideas what I'm doing wrong? Thanks Alex
