jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "shahid.khan" <shahi...@gmail.com>
Subject XPATH Query to search subtree for nt:file content
Date Wed, 15 Sep 2010 08:21:08 GMT

Hi, 

I am using following query to search the jackrabbit repository for file
containing given text. 
//element(*, nt:file)[jcr:contains(jcr:content,
'searchText')]/rep:excerpt(.) 

it works fine for me but it searches the whole repository. 
I want to search a subtree in repository for example I want to start
searching under node "/domain/users/user". 

Can any body help me on this that how to change the XPATH query to get the
desired result. 

Thanks & Regards 
Shahid K. 
-- 
View this message in context: http://jackrabbit.510166.n4.nabble.com/XPATH-Query-to-search-subtree-for-nt-file-content-tp2540098p2540098.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Mime
View raw message