Hi Raphaël,
the jcr:like function is acutally not meant to be used with NAME
properties because it is not required by the spec (see section 6.6.3.3).
your second statement example works because the index structure is able
to handle this specific jcr:like expression, but it does not support it
in general as you have noticed with the last two statements.
please post a jira enhancement request if you feel this is a feature
that should be included in jackrabbit.
regards
marcel
Raphaël Franchet wrote:
Hello,
I have got a strange behavior with the jcr:like function:
createQuery("//[EMAIL PROTECTED]:primaryType='myns:contentLanguage']"... OK
createQuery("//*[jcr:like(@jcr:primaryType, '%:contentLanguage')]"... OK
but as soon as I use namespaces in jcr:like,
createQuery("//*[jcr:like(@jcr:primaryType, '%ns:contentLanguage')]"... KO
createQuery("//*[jcr:like(@jcr:primaryType, 'myns:contentLanguage')]"... KO
is this a known limitation between jcr:like and namespaces ?
Thanks
ps: I'm using the HEAD version