jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ard Schrijvers <a.schrijv...@onehippo.com>
Subject Re: xpath or sql query on nodes
Date Fri, 05 Feb 2010 15:13:16 GMT
On Fri, Feb 5, 2010 at 3:15 PM, gary long <gary.long@gmx.fr> wrote:
> Hello :)
> I try to write a query that returns nodes that contains a certain key word in its properties.
I also would like to specify a certain node from which the search should start but I don't
know if it's possible?
> For exemple, I would like the query to search only for nodes that are of type nt:resource
and children of the node called "project8".

Try for example the xpath:

/jcr:root/project8//element(*, nt:resource)

take a look at the jsr 170/283 spec, there are some examples that
should get you going

Regards Ard

> Could you help me please? :)
> Thanks,
> Gary

View raw message