Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 9995 invoked from network); 4 Dec 2009 10:20:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Dec 2009 10:20:16 -0000 Received: (qmail 78099 invoked by uid 500); 4 Dec 2009 10:20:16 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 78030 invoked by uid 500); 4 Dec 2009 10:20:15 -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 78022 invoked by uid 99); 4 Dec 2009 10:20:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Dec 2009 10:20:15 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aklimets@day.com designates 207.126.148.89 as permitted sender) Received: from [207.126.148.89] (HELO eu3sys201aog103.obsmtp.com) (207.126.148.89) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 04 Dec 2009 10:20:13 +0000 Received: from source ([209.85.160.45]) by eu3sys201aob103.postini.com ([207.126.154.11]) with SMTP ID DSNKSxjiRGkoKH8aepIMFfLrj3ER1mMlypp7@postini.com; Fri, 04 Dec 2009 10:19:52 UTC Received: by pwi18 with SMTP id 18so944345pwi.24 for ; Fri, 04 Dec 2009 02:19:48 -0800 (PST) MIME-Version: 1.0 Received: by 10.141.48.9 with SMTP id a9mr190942rvk.249.1259921986561; Fri, 04 Dec 2009 02:19:46 -0800 (PST) In-Reply-To: <773D2278-B4CA-4E7B-B2CB-85A050C8EA86@datenlabor.net> References: <697f8380912040124p10108c37v83db13254d19baea@mail.gmail.com> <773D2278-B4CA-4E7B-B2CB-85A050C8EA86@datenlabor.net> Date: Fri, 4 Dec 2009 11:19:46 +0100 Message-ID: Subject: Re: fulltext search and node paths containing spaces From: Alexander Klimetschek To: dev@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable See also here: http://wiki.apache.org/jackrabbit/EncodingAndEscaping Regards, Alex On Fri, Dec 4, 2009 at 10:51, ulf schneider wrote: > many thanks ard, i've used ISO9075.encodePath() from org.apache.jackrabbi= t.util.ISO9075 and it works. > best regards, ulf. > > -- > ulf schneider > +49 163 2505164 > us@datenlabor.net > > datenlabor gmbh > sitz: paderborn, hrb 8819 > gesch=E4ftsf=FChrer: ulf schneider > www.datenlabor.net > ibm business partner > > > > > > Am 04.12.2009 um 10:24 schrieb Ard Schrijvers: > >> On Fri, Dec 4, 2009 at 9:51 AM, ulf schneider wrote: >>> hi, >>> i have a question regarding fulltext search and node paths containing s= paces. >>> >>> if i use the following query, any node that contains the string 'text' = will be found inside the subtree of /Allgemeine_Dokumente >>> >>> /jcr:root/Allgemeine_Dokumente//*[jcr:contains(., 'text')] >>> >>> if i do the same search but against a path that contains a space (/Allg= emeine Dokumente) no node will be found. >>> /jcr:root/Allgemeine Dokumente//*[jcr:contains(., 'text')] >>> >>> is there a chance to escape spaces in fulltext queries so that the full= text search will find content that is stored inside of subtrees with spaces= in the path? >> >> in fulltext searches, spaces are 'escaped' (obviously the real thing >> is that lucene analyzer tokenizes on a space). What you are referrring >> to is not a space in fulltext search (fulltext search is the >> jcr:contains), but in the child axis : /jcr:root/Allgemeine Dokumente >> >> You need to encode Allgemeine Dokumente : >> >> ISO9075.encode("Allgemeine Dokumente") >> >> Regards Ard >> >>> >>> best regards, ulf. >>> >>> -- >>> ulf schneider >>> +49 163 2505164 >>> us@datenlabor.net >>> >>> datenlabor gmbh >>> sitz: paderborn, hrb 8819 >>> gesch=E4ftsf=FChrer: ulf schneider >>> www.datenlabor.net >>> ibm business partner >>> --=20 Alexander Klimetschek alexander.klimetschek@day.com