Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 80431 invoked from network); 15 May 2008 10:12:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 May 2008 10:12:49 -0000 Received: (qmail 25387 invoked by uid 500); 15 May 2008 10:12:50 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 25125 invoked by uid 500); 15 May 2008 10:12:49 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 25114 invoked by uid 99); 15 May 2008 10:12:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 May 2008 03:12:49 -0700 X-ASF-Spam-Status: No, hits=2.6 required=10.0 tests=DNS_FROM_OPENWHOIS,SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists@nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 May 2008 10:12:02 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1JwaRd-00010r-C1 for users@jackrabbit.apache.org; Thu, 15 May 2008 03:12:17 -0700 Message-ID: <17249967.post@talk.nabble.com> Date: Thu, 15 May 2008 03:12:17 -0700 (PDT) From: David McKitterick To: users@jackrabbit.apache.org Subject: Executing query on sub node? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: david.mckitterick@gmail.com X-Virus-Checked: Checked by ClamAV on apache.org Hi, I was just wondering if it was possible to execute a query on a paricular subnode? For example my structure is JCR_Root/categoryX/languageX/data1/.. I know the category and language nodes, so I want to execute the query on the set of data child nodes, but in my code it seems I can only execute the query on the whole JCR_root e.g. QueryManager qMgr = session.getWorkspace().getQueryManager(); QueryResult result = qMgr.createQuery(xpathQuery, Query.XPATH ).execute(); then I need to iterate through the results to find the relevant data nodes. Is there a better way to implement a more fine tuned search? And if so would this be more efficient? Thanks, David. -- View this message in context: http://www.nabble.com/Executing-query-on-sub-node--tp17249967p17249967.html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.