Hi Federico,
I believe the following query would do what you are asking for. The xpath
query uses the "//" abbreviation for the descendant-or-self axis.
var query =
queryManager.createQuery("/jcr:root/content/david//element(*,
nt:unstructured) order by @created descending", "xpath");
Regards,
-Eric
On Thu, Jul 29, 2010 at 8:01 AM, Federico Paparoni <
[email protected]> wrote:
> 2010/7/29 Federico Paparoni <[email protected]>
>
> > Hi all,
> >
> > I easily put my contents under path like this
> > http://localhost:8080/content/david/2010/07/25/example.html
> >
> > but I don't really understand how can I create a query to search a
> property
> > on all the children of my application root node.
> > I tried some XPATH queries but probably there is something I don't
> > understand.
> > Can someone help me with this issue?
> >
> > Bye
> >
> > --
> > Federico
> >
>
>
> I solved the issue using the next query
>
> var query =
> queryManager.createQuery("/jcr:root/content/david/*/*/*/element(*,
> nt:unstructured) order by @created descending", "xpath");
>
> because all my nodes are like /YEAR/MONTH/DAY/entry. But If I want to make
> a
> full search on every children?
>
> --
> Federico
>