Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 71488 invoked from network); 20 Jul 2009 11:44:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 20 Jul 2009 11:44:52 -0000 Received: (qmail 24992 invoked by uid 500); 20 Jul 2009 11:45:57 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 24965 invoked by uid 500); 20 Jul 2009 11:45:57 -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 24954 invoked by uid 99); 20 Jul 2009 11:45:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jul 2009 11:45:57 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [217.237.162.101] (HELO mail.teliskp.de) (217.237.162.101) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Jul 2009 11:45:45 +0000 Received: from TelisExMbx01.telis.it.tfsh ([10.1.8.202]) by telisex04 ([10.1.8.184]) with mapi; Mon, 20 Jul 2009 13:45:25 +0200 From: Bahl Christian To: "'users@jackrabbit.apache.org'" Date: Mon, 20 Jul 2009 13:45:25 +0200 Subject: AW: Question about XPATH and jcr:contains Thread-Topic: Question about XPATH and jcr:contains Thread-Index: AcoJLND2CB6mlxxPS92DgpPMhIAFpAAAaPbg Message-ID: <12B08E43EA4D0A4194C46028C6D109E86367C8859A@TELISEXMBX01.telis.it.tfsh> References: <12B08E43EA4D0A4194C46028C6D109E86367C88599@TELISEXMBX01.telis.it.tfsh> <697f8380907200425h3a143a75k7c08546dc84c41a7@mail.gmail.com> In-Reply-To: <697f8380907200425h3a143a75k7c08546dc84c41a7@mail.gmail.com> Accept-Language: de-DE Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org This looks really good. But now I=B4ve another question on indexing configuration. My configuration= file looks like this: * */* */*/* */*/*/* 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:unstructured"= like all other nodes too. So what primaryType should I use or better is th= ere a possibility to configure a path instead of primaryType? Thx -----Urspr=FCngliche Nachricht----- Von: Ard Schrijvers [mailto:a.schrijvers@onehippo.com]=20 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 wro= te: > 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 '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 se= cond child node. And this is my problem. Is there any solution to merge the= three jcr:contains in ONE? > > In future it might be possible that there are more than 2 child nodes and= therefore I want to check all child nodes and the node itself where the pr= operty tempContent=3D'false'. > > Thx > Bodo >