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. 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')]


regards
 marcel

Reply via email to