First you need to define Index aggregate like below (refer http://wiki.apache.org/jackrabbit/IndexingConfiguration).
<aggregate primaryType="nt:file">
<include>jcr:content</include>
</aggregate>
Once you define it, you can query using
select * from [nt:file] as t where contains(t.*,term)
Hope that helps.
--
View this message in context:
http://jackrabbit.510166.n4.nabble.com/SQL2-equivalent-to-XPath-tp4659518p4659519.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
