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: searchin across a node hierarchy
Date Mon, 05 Feb 2007 08:11:25 GMT
As of jackrabbit 1.2.1 you can, but that would be:

//element(*, okm:document)[jcr:like(@okm:name, '%txt') and
okm:content/@okm:size > 1]

regards
  marcel


Paco Avila wrote:
> [okm:resource] > nt:resource, mix:versionable
> - okm:size (long) mandatory
> - okm:author (string) mandatory
> 
> [okm:document] > nt:hierarchyNode, mix:referenceable, mix:lockable,
> mix:accessControlled
> - okm:author (string) mandatory
> - okm:name (string)
> - okm:language (string)
> - okm:keywords (string)
> - okm:notification (string) multiple
> + okm:content (okm:resource) primary mandatory
> + okm:properties (nt:unstructured) 
> 
> 
> In the okm:properties there are several document properties. Each
> document can have different properties. Can I make a complex search
> where mix okm:document properties, okm:resource properties and
> okm:properties? Something like:
> 
> //element(*, okm:document)[jcr:like(@okm:name, '%txt') and
> (@okm:resource/okm:size > 1)]


Mime
View raw message