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: jcr:data query question
Date Thu, 10 Jul 2008 14:57:44 GMT

> 
> Just a wild guess: try and remove the @ in the predicate 
> inside jcr:contains:
> 
> /jcr:root/nen:content//element(*,nen:resource)[@dep:isarticle 
> and @dep:state = 'published' and @nen:type = '1' and 
> jcr:contains(jcr:content/jcr:data, 'fusce')]

AFAIK jcr:data is only indexed in the nodeIndex and not as a separate
property, hence I think jcr:contains(jcr:content/jcr:data, 'fusce')
would not work. 

Regards Ard

> 
> Regards,
> Alex
> 
> On Thu, Jul 10, 2008 at 10:22 AM, Torgeir Veimo 
> <torgeir@pobox.com> wrote:
> > This query works;
> >
> > /jcr:root/nen:content//element(*,nen:resource)[@dep:isarticle and 
> > @dep:state = 'published' and @nen:type = '1' and 
> > jcr:contains(jcr:content/., 'fusce')]
> >
> > while this one doesn't
> >
> > /jcr:root/nen:content//element(*,nen:resource)[@dep:isarticle and 
> > @dep:state = 'published' and @nen:type = '1' and 
> > jcr:contains(jcr:content/@jcr:data,
> > 'fusce')]
> >
> > Any idea what is wrong with the second one?
> >
> > --
> > Torgeir Veimo
> > torgeir@pobox.com
> >
> >
> >
> >
> >
> 
> 
> 
> --
> Alexander Klimetschek
> alexander.klimetschek@day.com
> 

Mime
View raw message