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 6AEDF17D32 for ; Fri, 17 Apr 2015 16:00:11 +0000 (UTC) Received: (qmail 19681 invoked by uid 500); 17 Apr 2015 16:00:11 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 19626 invoked by uid 500); 17 Apr 2015 16:00: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 19615 invoked by uid 99); 17 Apr 2015 16:00:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 16:00:10 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,TVD_FROM_1,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [199.253.21.25] (HELO mx1hou.stewart.com) (199.253.21.25) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 17 Apr 2015 16:00:06 +0000 Received: from TXHOUZIX03.STEWART.COM (unknown [192.168.60.43]) by mx1hou.stewart.com with smtp (TLS: TLSv1/SSLv3,256bits,DHE-RSA-AES256-GCM-SHA384) id 54bf_217a_d4b72e86_6e25_4530_86f2_e6ccf5a5b249; Fri, 17 Apr 2015 10:58:43 -0500 Received: from 127.0.0.1 (ZixVPM [127.0.0.1]) by Outbound.stewart.com (Proprietary) with SMTP id 8D90CE9FBC for ; Fri, 17 Apr 2015 10:57:21 -0500 (CDT) Received: from TXHOUEXHC10.sisco.stewart.net (txhouexhc10.sisco.stewart.net [10.20.6.38]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by TXHOUZIX03.STEWART.COM (Proprietary) with ESMTPS id 5731FE9FD1 for ; Fri, 17 Apr 2015 10:57:21 -0500 (CDT) Received: from TXHOUEXMB10.sisco.stewart.net ([fe80::8dbd:eefc:e09:c934]) by TXHOUEXHC10.sisco.stewart.net ([10.20.6.38]) with mapi id 14.03.0174.001; Fri, 17 Apr 2015 10:57:38 -0500 From: Adeel Shahzad To: "users@jackrabbit.apache.org" Subject: RE: Jackrabbit search does not find node with backslash in its name Thread-Topic: Jackrabbit search does not find node with backslash in its name Thread-Index: AdB4+5ew2XrzsQatSUSzjPbE2cawMgAHaZIwAAqBJQAACQNYIP//w/GAgABENFA= Date: Fri, 17 Apr 2015 15:57:37 +0000 Message-ID: References: <2F73AE7E4C010149AB0F643C48617EF02CAB39E9@013-BR1MPN1-013.MGDPBI.global.pvt> <2F73AE7E4C010149AB0F643C48617EF02CAB3E00@013-BR1MPN1-013.MGDPBI.global.pvt> <2F73AE7E4C010149AB0F643C48617EF02CAB3F0B@013-BR1MPN1-013.MGDPBI.global.pvt> In-Reply-To: <2F73AE7E4C010149AB0F643C48617EF02CAB3F0B@013-BR1MPN1-013.MGDPBI.global.pvt> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.20.11.140] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-VPM-MSG-ID: f393320d-6ab6-4fbb-b9ac-8c4961d6be86 X-VPM-HOST: TXHOUZIX03.STEWART.COM X-VPM-GROUP-ID: 84b2e31b-97a9-4911-aef9-4fb79b7cac05 X-VPM-ENC-REGIME: Plaintext X-VPM-IS-HYBRID: 0 X-Virus-Checked: Checked by ClamAV on apache.org This might seem strange, but you will have to escape the '\' in your node's= jcr:title property and not in query. I am trying to find what the specification says for property name conventio= n. Thanks, Adeel -----Original Message----- From: dinesh.babu@pb.com [mailto:dinesh.babu@pb.com]=20 Sent: Friday, April 17, 2015 8:01 PM To: users@jackrabbit.apache.org Subject: RE: Jackrabbit search does not find node with backslash in its nam= e Thanks Adeel. 1) I can't use Like clause, because I am looking for exact match 2) I escaped "\" by making it "\\" in the exact match query AND ( LOWER([jc= r:title]) =3D 'back\\slash1' ). That did not bring any result. Regards, Dinesh Babu Ph: +441923 279123 dinesh.babu@pb.com www.pb.com Pitney Bowes Software 6 Hercules Way, Leavesden Park, Watford, Herts WD25 7GS From: Adeel Shahzad [via Jackrabbit] [mailto:ml-node+s510166n4662322h48@n4.= nabble.com] Sent: 17 April 2015 15:56 To: Dinesh Babu Subject: RE: Jackrabbit search does not find node with backslash in its nam= e Ok got you. I have done something to check this... I added 2 properties in my node. These props are: - test:abc\tre - test123:abc\\tre And I used following 3 queries to access the node (might help you): select * from [nt:base] AS s where ISDESCENDANTNODE(s, '/content') and test= 123 like '%\\%' above query showed desired node select * from [nt:base] AS s where ISDESCENDANTNODE(s, '/content') and test= like '%\%' above query didn't come up with any result select * from [nt:base] AS s where ISDESCENDANTNODE(s, '/content') and test= 123 like '%\%' above query also showed nothing I think you might have to change the value of jcr:title i.e. escape the val= ue there Thanks, Adeel -----Original Message----- From: [hidden email] = [mailto:[hidden email]] Sent: Friday, April 17, 2015 7:18 PM To: [hidden email] Subject: RE: Jackrabbit search does not find node with backslash in its nam= e Thanks for your reply. It did not work. The problem part in the query is here "AND ( LOWER([jcr:ti= tle]) =3D 'back\slash1' ) " where title name has got a backslash in its nam= e Regards, Dinesh Babu From: Adeel Shahzad [via Jackrabbit] [mailto:[hidden email]] Sent: 17 April 2015 15:07 To: Dinesh Babu Subject: RE: Jackrabbit search does not find node with backslash in its nam= e This is part doesn't look good SELECT * FROM [pb:community] WHERE ISDESCENDANTNODE('/community') This should be SELECT * FROM [pb:community] AS s WHERE ISDESCENDANTNODE(s, '/community') -----Original Message----- From: Dinesh Babu [mailto:[hidden email]] Sent: Friday, April 17, 2015 3:45 PM To: [hidden email]; [= hidden email] Subject: Jackrabbit search does not find node with backslash in its name Hi, Jackrabbit search for a node with backslash ("\") does not work. This is the following query that we fire which does not work SELECT * FROM = [pb:community] WHERE ISDESCENDANTNODE('/community') AND ( LOWER([jcr:title]= ) =3D 'back\slash1' ) Does anyone know how to escape a backslash to get this query working? Commo= nly used methods in Text or ISO9075 does not do the trick. Regards, Dinesh Babu Pitney Bowes Software 6 Hercules Way, Leavesden Park, Watford, Herts WD25 7GS ________________________________ ________________________________ If you reply to this email, your message will be added to the discussion be= low: http://jackrabbit.510166.n4.nabble.com/Jackrabbit-search-does-not-find-node= -with-backslash-in-its-name-tp4662318p4662320.html To start a new topic under Jackrabbit - Users, email [hidden email]> To unsubscribe from Jackrabbit, click here< NAML ________________________________ -- View this message in context: http://jackrabbit.510166.n4.nabble.com/Jackra= bbit-search-does-not-find-node-with-backslash-in-its-name-tp4662318p4662321= .html Sent from the Jackrabbit - Users mailing list archive at Nabble.com. ________________________________ If you reply to this email, your message will be added to the discussion be= low: http://jackrabbit.510166.n4.nabble.com/Jackrabbit-search-does-not-find-node= -with-backslash-in-its-name-tp4662318p4662322.html To start a new topic under Jackrabbit - Users, email ml-node+s510166n510167= h43@n4.nabble.com To unsubscribe from Jackrabbit, click here. NAML ________________________________ -- View this message in context: http://jackrabbit.510166.n4.nabble.com/Jackra= bbit-search-does-not-find-node-with-backslash-in-its-name-tp4662318p4662323= .html Sent from the Jackrabbit - Users mailing list archive at Nabble.com.