Hi Eric,

2010/7/29 Eric Norman <[email protected]>

> 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
>
>
Thanks, this works, but anyway not all nodes have the same property, so
probably I'll use the previous query.
If I search in this way I get all the nodes, if I want to get a node with a
particular property I can write

/jcr:root/content/david//element(*,nt:unstructured)[jcr:like(@title,
'%WORD%')]

but if I want to search all nodes with the name like to some words?

-- 
Federico

Reply via email to