Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 79977 invoked from network); 20 Jul 2009 12:07:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jul 2009 12:07:46 -0000 Received: (qmail 53851 invoked by uid 500); 20 Jul 2009 12:08:51 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 53834 invoked by uid 500); 20 Jul 2009 12:08:51 -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 53823 invoked by uid 99); 20 Jul 2009 12:08:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jul 2009 12:08:51 +0000 X-ASF-Spam-Status: No, hits=-2.8 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.18.2.18] (HELO exprod7og120.obsmtp.com) (64.18.2.18) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 20 Jul 2009 12:08:40 +0000 Received: from source ([74.125.78.27]) by exprod7ob120.postini.com ([64.18.6.12]) with SMTP ID DSNKSmReMlyL6YKMosb/Dbkvej2RckRAC+ql@postini.com; Mon, 20 Jul 2009 05:08:20 PDT Received: by ey-out-2122.google.com with SMTP id 9so582291eyd.21 for ; Mon, 20 Jul 2009 05:08:17 -0700 (PDT) MIME-Version: 1.0 Received: by 10.216.15.84 with SMTP id e62mr1141692wee.207.1248091697677; Mon, 20 Jul 2009 05:08:17 -0700 (PDT) In-Reply-To: <12B08E43EA4D0A4194C46028C6D109E86367C8859A@TELISEXMBX01.telis.it.tfsh> References: <12B08E43EA4D0A4194C46028C6D109E86367C88599@TELISEXMBX01.telis.it.tfsh> <697f8380907200425h3a143a75k7c08546dc84c41a7@mail.gmail.com> <12B08E43EA4D0A4194C46028C6D109E86367C8859A@TELISEXMBX01.telis.it.tfsh> Date: Mon, 20 Jul 2009 14:08:17 +0200 Message-ID: <697f8380907200508j18f8cfb9vb333e31db23acd6b@mail.gmail.com> Subject: Re: Question about XPATH and jcr:contains From: Ard Schrijvers To: users@jackrabbit.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org On Mon, Jul 20, 2009 at 1:45 PM, Bahl Christian wro= te: > This looks really good. > > But now I=B4ve another question on indexing configuration. My configurati= on file looks like this: > > > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 xmlns:nt=3D"http://www.jcp.org/jcr/nt/1.0"> > =A0 > =A0 =A0* > =A0 =A0*/* > =A0 =A0*/*/* > =A0 =A0*/*/*/* > =A0 > > > I do NOT have a special primaryType!!! My structure is: > > /activ/personnumber/article/jcrarticle/.../.../... > > The node i want to get back is jcrarticle. It=B4s of type "nt:unstructure= d" like all other nodes too. So what primaryType should I use or better is = there a possibility to configure a path instead of primaryType? Don't think so. If you use this aggregating, I think you can better use some primaryType's for your 'document' kind of node to make this nicely. Regards Ard > > Thx > > -----Urspr=FCngliche Nachricht----- > Von: Ard Schrijvers [mailto:a.schrijvers@onehippo.com] > Gesendet: Montag, 20. Juli 2009 13:25 > An: users@jackrabbit.apache.org > Betreff: Re: Question about XPATH and jcr:contains > > On Mon, Jul 20, 2009 at 1:18 PM, Bahl Christian w= rote: >> Hi, >> >> I`ve a problem with a query in XPATH. It looks like this: >> >> /jcr:root//*[(@tempContent=3D'false') and (jcr:contains(.,'*termin*') or= jcr:contains(*/.,'*termin*') or jcr:contains(*/*/.,'*termin*'))] >> >> I=B4m searching all Nodes, not beeing Temp. > > Apparently, the nodes that contain tempContent =3D false|true are the > nodes you are interested in, right? I assume, these nodes represent > your documents. I would advice you to make sure text indexing is done > on the nodescope level that represent your document You can achieve > this with index aggregates. This effectivily removes the */. and */*/. > as you text-index all childs below the 'mytype:document' on the scope > of =A0'mytype:document'. Search for indexing_configuration.xml. Take a > look at aggregates, that is what might appeal to you > > regards Ard > >> >> And also containing the word "termin" in the same node, the first, and s= econd child node. And this is my problem. Is there any solution to merge th= e three jcr:contains in ONE? >> >> In future it might be possible that there are more than 2 child nodes an= d therefore I want to check all child nodes and the node itself where the p= roperty tempContent=3D'false'. >> >> Thx >> Bodo >> >