Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 12449 invoked from network); 13 Nov 2008 14:41:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Nov 2008 14:41:18 -0000 Received: (qmail 50138 invoked by uid 500); 13 Nov 2008 14:41:24 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 50122 invoked by uid 500); 13 Nov 2008 14:41:24 -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 50111 invoked by uid 99); 13 Nov 2008 14:41:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Nov 2008 06:41:24 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [62.101.100.50] (HELO smtpout3.reply.it) (62.101.100.50) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 13 Nov 2008 14:40:05 +0000 Received: from ced01hubs01.replynet.prv (10.50.63.3) by ced01ets02.replynet.prv (172.16.1.34) with Microsoft SMTP Server (TLS) id 8.1.311.2; Thu, 13 Nov 2008 15:40:24 +0100 Received: from CED01CMBXS01.replynet.prv ([10.50.61.2]) by ced01hubs01.replynet.prv ([10.50.63.2]) with mapi; Thu, 13 Nov 2008 15:40:24 +0100 From: Blanco Emanuele To: "users@jackrabbit.apache.org" Date: Thu, 13 Nov 2008 15:40:14 +0100 Subject: SQL case insensitive search using jcr:path Thread-Topic: SQL case insensitive search using jcr:path Thread-Index: AclFnb0Hm1btKBRtSJuIE8ORLrSfGg== Message-ID: <9889CC1A69BBC549931AF0B0C250EE65127968AFA2@CED01CMBXS01.replynet.prv> Accept-Language: it-IT, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: it-IT, en-US Content-Type: multipart/alternative; boundary="_000_9889CC1A69BBC549931AF0B0C250EE65127968AFA2CED01CMBXS01r_" MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org --_000_9889CC1A69BBC549931AF0B0C250EE65127968AFA2CED01CMBXS01r_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi, I'm trying to write some SQL queries to search nodes in my Jackrabbit repos= itory. I need to find nodes, given the node name, under a specified path. I used something like this (assuming I need to search for a node named 'foo= bar' in descendants of /foo/bar): SELECT * FROM ns:type WHERE jcr:path LIKE '/foo/bar/%/foobar' However, if the node is stored as FOOBAR, Foobar, fooBar or so on, searchin= g will not return any result. Is there a way to make this search case insen= sitive? And, last but not least, there is a way to specify a "soundslike" concept, = always using jcr:path? Thank you. -- Emanuele Blanco ________________________________ -- The information transmitted is intended for the person or entity to which i= t is addressed and may contain confidential and/or privileged material. Any= review, retransmission, dissemination or other use of, or taking of any ac= tion in reliance upon, this information by persons or entities other than t= he intended recipient is prohibited. If you received this in error, please = contact the sender and delete the material from any computer. --_000_9889CC1A69BBC549931AF0B0C250EE65127968AFA2CED01CMBXS01r_--