> > Just a wild guess: try and remove the @ in the predicate > inside jcr:contains: > > /jcr:root/nen:content//element(*,nen:resource)[EMAIL PROTECTED]: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 > <[EMAIL PROTECTED]> wrote: > > This query works; > > > > /jcr:root/nen:content//element(*,nen:resource)[EMAIL PROTECTED]: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)[EMAIL PROTECTED]: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 > > [EMAIL PROTECTED] > > > > > > > > > > > > > > -- > Alexander Klimetschek > [EMAIL PROTECTED] >
