Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 56075 invoked from network); 14 Jan 2009 13:42:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jan 2009 13:42:26 -0000 Received: (qmail 85450 invoked by uid 500); 14 Jan 2009 13:42:25 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 85435 invoked by uid 500); 14 Jan 2009 13:42:25 -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 85424 invoked by uid 99); 14 Jan 2009 13:42:24 -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 05:42: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: domain of todd.seiber@gmail.com designates 209.85.198.227 as permitted sender) Received: from [209.85.198.227] (HELO rv-out-0506.google.com) (209.85.198.227) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Jan 2009 13:42:16 +0000 Received: by rv-out-0506.google.com with SMTP id k40so593878rvb.31 for ; Wed, 14 Jan 2009 05:41:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=ayx+vzQcnFT0o3H1JtPVSCSKPDAH6sbPUzkKQGUqiRQ=; b=Gp7rU+vwsEtxN7we9FcCOJbh8D5fCM0eJ7vu/5G8Uqw99e9UKXtDS9Jw8sOKSX/2dz LEmENfdsAvP9pMz2RqHDjqtitjbT8vu1A5MvHUUwOHT40TiZMwlyLpcy9PKj1cSqosWA j+cXmjJIejorZ5xQhjtech3AwOR5iot+Z529U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=MBKlnRgcuwM6NVPr6v+6WS8zKy2qfUuua4eQ70ODFUqGHExvZIkouHWlL1cHtD2Mj0 OOZrwzeX4rcnbVW27J/f5t5WiVN7Rm7Vs+1Qb1d7CfU9eai50TZPZi98GAYQDBEUdST1 qU+UJb1fat1ijd0S1OhTJnv4gcOewx/irIww0= Received: by 10.141.197.21 with SMTP id z21mr39427rvp.75.1231940515875; Wed, 14 Jan 2009 05:41:55 -0800 (PST) Received: by 10.140.42.4 with HTTP; Wed, 14 Jan 2009 05:41:55 -0800 (PST) Message-ID: <8ce7e61c0901140541k56b4c7e8m7e04fd7153f82a0f@mail.gmail.com> Date: Wed, 14 Jan 2009 08:41:55 -0500 From: "Todd Seiber" To: users@jackrabbit.apache.org Subject: Re: Full text search In-Reply-To: <496DE9A6.5020008@i-deal.hu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_163189_15033263.1231940515860" References: <496DE9A6.5020008@i-deal.hu> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_163189_15033263.1231940515860 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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. > -- Todd Seiber 830 Fishing Creek Rd. New Cumberland, PA 17070 h. 717-938-5778 c. 717-497-1742 e. todd.seiber@gmail.com ------=_Part_163189_15033263.1231940515860--