Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 91292 invoked from network); 18 Dec 2007 05:42:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Dec 2007 05:42:43 -0000 Received: (qmail 10947 invoked by uid 500); 18 Dec 2007 05:42:31 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 10925 invoked by uid 500); 18 Dec 2007 05:42:31 -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 10916 invoked by uid 99); 18 Dec 2007 05:42:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Dec 2007 21:42:31 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of sridhar.raman@gmail.com designates 72.14.214.234 as permitted sender) Received: from [72.14.214.234] (HELO hu-out-0506.google.com) (72.14.214.234) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2007 05:42:10 +0000 Received: by hu-out-0506.google.com with SMTP id 34so882725hud.16 for ; Mon, 17 Dec 2007 21:42:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=cgf07xYBlZzl7PdA2YxCZM0ET3neTqiCFTYhkX5OQsA=; b=qPmghl5Q2jxjbemoYg4351vDzcbN+9pIbcrL88BhByAdlckAPb0dZoRE7JmBlRPjH0FsRbKCVfOh5q/OL1Pipa5bPOHQFs9qwj5ZhAfv9qK9fSRtGUAwt9pelZxZcUBeQ5ue8cnj24M0KCyb3RJhJ3A4Hf667SEbo1SYXHaOtEo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=bzRUuHiinTzmuCfky+FOJ2tW39fFfYPvLGDsrY2u//ktTm/5jKbIgzce72hysHRmTLSOPFrgWYwH+5GPy/avSZPaG652KqmMQjDiCwoz12A7bebyZWfsMlc+oDitwG/gg8JxT3nWBnShLmyFrOkxB5iWORXTSwEnmHwTlNSELVI= Received: by 10.78.193.5 with SMTP id q5mr9538338huf.30.1197956532412; Mon, 17 Dec 2007 21:42:12 -0800 (PST) Received: by 10.78.166.20 with HTTP; Mon, 17 Dec 2007 21:42:12 -0800 (PST) Message-ID: <227621ad0712172142l363e561dj86bbc8cb6c53d9f@mail.gmail.com> Date: Tue, 18 Dec 2007 11:12:12 +0530 From: "Sridhar Raman" To: users@jackrabbit.apache.org Subject: Re: Querying on multi-value properties In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_11372_20737664.1197956532397" References: <227621ad0712170524m5bf712adh3b7b62ba7f270110@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_11372_20737664.1197956532397 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Isn't //*[@author='stephen king'] a case-sensitive search? Besides if I had a node with an author value as "stephen edwin king", this query wouldn't work. Right? On Dec 17, 2007 7:03 PM, Ard Schrijvers wrote: > Hello, > > //*[@author='stephen king'] should do it > > Regards Ard > > > > > This is the node structure I have: > > bookType: > > - authors (multiple) > > > > I may have around 1000 nodes of bookType. Now, I want to > > find all nodes of type bookType that have "stephen king" in > > the property author. > > > > A simple jcr:contains query with like this - > > jcr:contains(@authors, 'stephen > > king') - doesn't work as I would want it to. The reason > > being, if by chance, I have a node that has "stephen" in one > > of the author values, and "king" in another value of property > > author, this node is returned as a match. But I want _only_ > > those nodes that have "stephen" and "king" in the same value > > of the author property. > > > > Example: > > nodeA: > > - authors {"stephen king", "robert jordan"} > > > > nodeB: > > - authors {"good stephen", "royal king"} > > > > On running the query, I get both nodeA and nodeB. But I want > > only nodeA. > > Is there any way of doing > > this? > > > > Thanks, > > Sridhar > > > ------=_Part_11372_20737664.1197956532397--