You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Alexander Klimetschek <ak...@day.com> on 2010/05/14 15:00:27 UTC
Re: Not returning any result when I am doing text search from added
file from jackrabbit [SEC=UNCLASSIFIED]
On Thu, May 13, 2010 at 02:06, <Ro...@ipaustralia.gov.au> wrote:
> "Jenni Pothu" <Je...@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