jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcel Reutegger <marcel.reuteg...@gmx.net>
Subject Re: Full text search/queries
Date Wed, 28 Nov 2007 11:16:02 GMT
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 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')]


View raw message