jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rohnny Moland" <rmol...@gmail.com>
Subject Re: Searching for multiple types using xpath
Date Wed, 04 Jul 2007 11:58:53 GMT
On 7/4/07, Marcel Reutegger <marcel.reutegger@gmx.net> wrote:
> Rohnny Moland wrote:
> > Works great. My guess was that I could use something like:
> >
> > /path/to/context//element(*, typeA or typeB)
> >
> > But this did not work. Tried to search this mailing list also, but
> > couldnt find any answer for this.
>
> you can have multiple checks for the jcr:primaryType property, but please note
> that type inheritance is not respected in that case. the query will then only
> return nodes that have the exact primary type you state in the query.

Right. But I need to have type inheritance working. Any other
suggestions? I could change to sql query language instead, that may be
easier.

Thanks,
Rohnny

Mime
View raw message