Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 71968 invoked from network); 14 Jan 2009 14:12:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jan 2009 14:12:25 -0000 Received: (qmail 33483 invoked by uid 500); 14 Jan 2009 14:12:23 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 33464 invoked by uid 500); 14 Jan 2009 14:12:23 -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 33442 invoked by uid 99); 14 Jan 2009 14:12:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jan 2009 06:12:23 -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 [193.28.86.45] (HELO mail.i-deal.hu) (193.28.86.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jan 2009 14:12:14 +0000 Received: from localhost (i-deal [127.0.0.1]) by mail.i-deal.hu (Postfix) with ESMTP id E669311C120 for ; Wed, 14 Jan 2009 15:11:54 +0100 (CET) Received: from mail.i-deal.hu ([127.0.0.1]) by localhost (i-deal [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 22049-03; Wed, 14 Jan 2009 15:11:54 +0100 (CET) Received: from [192.168.0.206] (unknown [80.98.136.189]) by mail.i-deal.hu (Postfix) with ESMTP id 69B0C11C11F for ; Wed, 14 Jan 2009 15:11:54 +0100 (CET) Message-ID: <496DF2BA.6090809@i-deal.hu> Date: Wed, 14 Jan 2009 15:12:10 +0100 From: Gustavo Guevara User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Full text search References: <496DE9A6.5020008@i-deal.hu> <8ce7e61c0901140541k56b4c7e8m7e04fd7153f82a0f@mail.gmail.com> In-Reply-To: <8ce7e61c0901140541k56b4c7e8m7e04fd7153f82a0f@mail.gmail.com> Content-Type: multipart/alternative; boundary="------------040303060706090207020905" X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at i-deal.hu X-Virus-Checked: Checked by ClamAV on apache.org --------------040303060706090207020905 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Todd Seiber wrote: I tried using that search string as well as it's translation to SQL using http://people.apache.org/~mreutegg/jcr-query-translator/translator.html however the results remain the same. Any tips? > I have had a similar issue. My solution was to change my XPATH instead of > tracking down the problem. > > You could try the following instead. > > /jcr:root/toolTest:parentTest/element(*, > toolTest:contractTest)[jcr:contains(.,'" + searchText + "')] > > On Wed, Jan 14, 2009 at 8:33 AM, Gustavo Guevara wrote: > > >> Hi, >> >> I am attempting to use jackrabbit's indexing to implement full text search >> for my application. I have a couple of questions: >> >> When adding nodes with the same name they get added a suffix like so: >> >> Node's path: /toolTest:parentTest/toolTest:contractTest >> Node's path: /toolTest:parentTest/toolTest:contractTest[2] >> Node's path: /toolTest:parentTest/toolTest:contractTest[3] >> Node's path: /toolTest:parentTest/toolTest:contractTest[4] >> ... >> >> My indexing configuration file is as follows: >> >> >> > http://jackrabbit.apache.org/dtd/indexing-configuration-1.0.dtd"> >> >> >> >> >> >> * >> >> >> >> state_of_contract >> ...other properties... >> >> >> >> >> The search query I'm using is: (XPATH) >> >> /jcr:root/toolTest:parentTest/toolTest:contractTest[*][jcr:contains(.,'" + >> searchText + "')] >> >> But my result set only contains information for the first node. Where am I >> making a mistake? >> >> Thanks in advance. >> >> > > > > --------------040303060706090207020905--