Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 60615 invoked from network); 20 Aug 2009 09:31:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Aug 2009 09:31:24 -0000 Received: (qmail 65483 invoked by uid 500); 20 Aug 2009 09:31:42 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 65454 invoked by uid 500); 20 Aug 2009 09:31:42 -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 65440 invoked by uid 99); 20 Aug 2009 09:31:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Aug 2009 09:31:41 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mreutegg@day.com designates 207.126.148.183 as permitted sender) Received: from [207.126.148.183] (HELO eu3sys201aog003.obsmtp.com) (207.126.148.183) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 20 Aug 2009 09:31:31 +0000 Received: from source ([72.14.220.152]) by eu3sys201aob003.postini.com ([207.126.154.11]) with SMTP ID DSNKSo0X3WFkZxXXzavJSdYchqx+j/HHxHAr@postini.com; Thu, 20 Aug 2009 09:31:11 UTC Received: by fg-out-1718.google.com with SMTP id e12so934821fga.17 for ; Thu, 20 Aug 2009 02:31:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.86.226.32 with SMTP id y32mr4930173fgg.77.1250760668432; Thu, 20 Aug 2009 02:31:08 -0700 (PDT) In-Reply-To: <813d89dc0908181426r42d160ewe8bfce6b19d02449@mail.gmail.com> References: <813d89dc0908181426r42d160ewe8bfce6b19d02449@mail.gmail.com> Date: Thu, 20 Aug 2009 11:31:08 +0200 Message-ID: Subject: Re: Wrong results from jcr:like query From: Marcel Reutegger To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Tue, Aug 18, 2009 at 23:26, Dan Diephouse wrote: > I have a repository like with the following structure > > /hello.wsdl/@name="hello.wsdl" > /hello.wsdl/1.0/@name="1.0" > > I run the query: > > //*[jcr:like(fn:lower-case(@name), '%hello.wsdl%')] > > This turns into the Lucene query: "+1:name:%hello.wsdl%" > > I'm getting back both nodes though, and not just the first one. > > I tried both with my forked branch of 1.6/Lucene 2.4.2 (I know, I know.... > just has JCR-977 patches in it) and also with 1.4.x/Lucene 2.2.0 which we > were on before we upgraded. I can get a more official recent version, but > does this ring a bell to anyone? hmm, no. can you please try it with the current trunk and file a jira issue if the same problem exists there? thanks regards marcel > I seem to recall seeing something about it > at some point.... If you give me an idea of what the modified Lucene query > should be I can probably provide a patch. > > Dan > -- > Dan Diephouse > http://mulesource.com | http://netzooid.com/blog >