jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Reschke <julian.resc...@gmx.de>
Subject Re: Searching on "jcr:name" property doest'nt work?
Date Tue, 05 Jun 2007 10:07:40 GMT
gsoap wrote:
> Hi,
> 
> Why searching on "jcr:name" property doest'nt work?

What are you searching for? As far as I can tell, jcr:name is only 
defined on node and property definitions (when exposed under 
/jcr:system/jcr:nodeTypes).

> What is wrong with following statement?
> 
> SELECT * FROM nt:base WHERE jcr:name = 'abc'

If you're looking for nodes where the last part of the path is "abc", 
you'll need

	//abc

or in SQL:

	SELECT * FROM nt:base WHERE (jcr:path LIKE '/%/abc[%]' OR jcr:path LIKE 
'/abc[%]')

(<http://people.apache.org/~mreutegg/jcr-query-translator/translator.html> 
is your friend.)

Best regards, Julian





Mime
View raw message