Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 29519 invoked from network); 21 Feb 2008 19:55:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Feb 2008 19:55:59 -0000 Received: (qmail 9970 invoked by uid 500); 21 Feb 2008 19:55:52 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 9940 invoked by uid 500); 21 Feb 2008 19:55:52 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 9728 invoked by uid 99); 21 Feb 2008 19:55:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2008 11:55:51 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2008 19:55:27 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 54A0D234C043 for ; Thu, 21 Feb 2008 11:55:19 -0800 (PST) Message-ID: <1192189714.1203623719345.JavaMail.jira@brutus> Date: Thu, 21 Feb 2008 11:55:19 -0800 (PST) From: =?utf-8?Q?S=C3=A9bastien_Launay_=28JIRA=29?= To: dev@jackrabbit.apache.org Subject: [jira] Created: (JCR-1408) Invalid query results when using jcr:like with a case transform function and a pattern not starting with a wildcard MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Invalid query results when using jcr:like with a case transform function an= d a pattern not starting with a wildcard ---------------------------------------------------------------------------= ---------------------------------------- Key: JCR-1408 URL: https://issues.apache.org/jira/browse/JCR-1408 Project: Jackrabbit Issue Type: Bug Components: jackrabbit-core, query Affects Versions: core 1.4.1, 1.4 Environment: Ubuntu gutsy, Sun JDK 1.5.0_08 Reporter: S=C3=A9bastien Launay If the repository contains nodes with the following value for the property = name : john JOhn joe Joey and we run the following query : //element(*, document)/*[jcr:like(fn:lower-case(@name), 'joh%')]") then all the previous nodes will match especially the last 2 nodes. The reason is the use of two range scans from the lucene term index: ..._name_jOH .................. ..._name_joh_ and ..._name_JOH .................. ..._name_Joh_ The first range will contains ..._name_joe property and the second will con= tains ..._name_Joey. But the pattern 'joh%' and so the regexp '.*' because of the range scan wil= l match the substring values of the properties ('' in the first range and 'y' in th= e second range). The solution is to use the full pattern (ie 'joh.*') for matching each prop= erties. --=20 This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.