Hello Juan,

If you want to find all nodes that contain 'Special' in one of its
properties, "/pages/*[jcr:contains(., 'Special')]" is the way to do it
(in the node scope level all properties are added to the index, unless
you configure otherwise in the IndexingConfiguration [1]). I never tried
/pages/*[jcr:like(@*, '%Special%')], but i assume it does not work. Even
if we would implement the xpath to work, having a '%' prefix in jcr:like
is bad practice, see [2] for explanantion on some queries. I hope to
find some time in short notice to create a wiki page out of it. 

Regards Ard

[1] http://wiki.apache.org/jackrabbit/IndexingConfiguration
[2]
http://mail-archives.apache.org/mod_mbox/jackrabbit-users/200801.mbox/%3
[EMAIL PROTECTED]

> 
> 
> In jcr:contain, I can use "." to match any attributes in the 
> node, like "/pages/*[jcr:contains(., 'Special')] But, with 
> jcr:like, I have to give the attribute name, I can only use 
> /pages/*[jcr:like(@title, '%Special%')], I can't use 
> something like /pages/*[jcr:like(@*, '%Special%')] to find 
> all the nodes that has any attribute like %Special%. Is there 
> any way to accomplish this? 
> 
> Thanks.
> 
> Juan
> --
> View this message in context: 
> http://www.nabble.com/does-jcr%3Alike-has-a-wildcard-like-jcr%
> 3Acontain--tp15143136p15143136.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
> 
> 

Reply via email to