Marcel Reutegger wrote:
Michael Wechner wrote:
Query q = qm.createQuery("//jcr:content[jcr:contains(@jcr:data,
'Hello')]", Query.XPATH);
then I don't receive any nodes, whereas I am very sure there are
nodes containing the word "Hello" and also the index, because when
doing a grep I do receive
the binary property jcr:data is indexed but is only available on the
node level index. see spec section 6.6.5.2.
ok, thanks for the pointer
jcr:contains on a property is supported in jackrabbit but only on
string properties.
the following query will work:
//jcr:content[jcr:contains(., 'hello')]
or alternatively:
//*[jcr:contains(jcr:content, 'hello')]
that works indeed. Thanks very much.
I think now I am ready to create a Wiki page ;-)
Cheers
Michael
regards
marcel
--
Michael Wechner
Wyona - Open Source Content Management - Yanel, Yulup
http://www.wyona.com
[EMAIL PROTECTED], [EMAIL PROTECTED]
+41 44 272 91 61