Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3CBC65290 for ; Thu, 12 May 2011 13:45:12 +0000 (UTC) Received: (qmail 27371 invoked by uid 500); 12 May 2011 13:45:11 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 27340 invoked by uid 500); 12 May 2011 13:45:11 -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 27332 invoked by uid 99); 12 May 2011 13:45:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 May 2011 13:45:11 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [66.199.246.189] (HELO vps3.hidra.entopia.es) (66.199.246.189) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 May 2011 13:45:04 +0000 Received: from mail-bw0-f42.google.com (mail-bw0-f42.google.com [209.85.214.42]) (Authenticated sender: pavila@openkm.com) by vps3.hidra.entopia.es (Postfix) with ESMTPSA id 8D96C70659 for ; Thu, 12 May 2011 15:45:29 +0200 (CEST) Received: by bwz18 with SMTP id 18so3248364bwz.1 for ; Thu, 12 May 2011 06:44:41 -0700 (PDT) MIME-Version: 1.0 Received: by 10.204.42.69 with SMTP id r5mr233336bke.52.1305207881875; Thu, 12 May 2011 06:44:41 -0700 (PDT) Received: by 10.204.51.2 with HTTP; Thu, 12 May 2011 06:44:41 -0700 (PDT) Received: by 10.204.51.2 with HTTP; Thu, 12 May 2011 06:44:41 -0700 (PDT) In-Reply-To: References: Date: Thu, 12 May 2011 15:44:41 +0200 Message-ID: Subject: Re: Need help regarding Jackrabbit GQL usage: From: Paco Avila To: users@jackrabbit.apache.org Content-Type: multipart/alternative; boundary=bcaec554e01a2842bd04a31464e6 --bcaec554e01a2842bd04a31464e6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable with "path:/ConfigRoot/tmp book" you can get all nodes starting from that path and containing the word "book" in any of the properties. As far as I know you can't test a property existence using GQL. And for the documentation you can see the javadoc or the source code ;) El 12/05/2011 15:11, "Ashok" escribi=F3: > Hi, > > We are using JackRabbit 2.0 > > I am exploring GQL for searching nodes in our repository. I need to know how > we can club more than one conditions in the statement. > > For eg: > > I want to search nodes in the path "/ConfigRoot/tmp" and has a property > named "book". > > Individually we can construct 2 queries for the above conditions using: > > GQL.execute("path:/ConfigRoot/tmp", session); > GQL.execute("book", session); > > But I want to club these 2 conditions as 1 statement. How can we achieve > this? > Also please point me if there is any GQL related working examples? > > -- > Cheers, > Ashok > +91-9600117508 --bcaec554e01a2842bd04a31464e6--