jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexander Klimetschek <aklim...@day.com>
Subject Re: Not returning any result when I am doing text search from added file from jackrabbit [SEC=UNCLASSIFIED]
Date Fri, 14 May 2010 13:00:27 GMT
On Thu, May 13, 2010 at 02:06,  <Ross.Dyson@ipaustralia.gov.au> wrote:
> "Jenni Pothu" <Jennip@virtusa.com> wrote on 12/05/2010 09:23:49 PM:
>> //blogEntry/NewblogEntry(*, nt:file)[jcr:contains(.,'"+sometext+"')]

I think you want to use the "element()" function for this, to specify
both a node name and its type in a single xpath location step:

//blogEntry/element(NewblogEntry, nt:file)[jcr:contains(.,'"+sometext+"')]

Regards,
Alex

-- 
Alexander Klimetschek
alexander.klimetschek@day.com

Mime
View raw message