From users-return-5808-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Tue Dec 18 11:42:09 2007 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 42592 invoked from network); 18 Dec 2007 11:42:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Dec 2007 11:42:09 -0000 Received: (qmail 32258 invoked by uid 500); 18 Dec 2007 11:41:57 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 32238 invoked by uid 500); 18 Dec 2007 11:41: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 32229 invoked by uid 99); 18 Dec 2007 11:41:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2007 03:41:57 -0800 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 [213.133.51.241] (HELO mail.hippo.nl) (213.133.51.241) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Dec 2007 11:41:47 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Querying on multi-value properties Date: Tue, 18 Dec 2007 12:41:33 +0100 Message-ID: In-Reply-To: <227621ad0712180332m76ca0a56uf9797969e6e1f5b0@mail.gmail.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Querying on multi-value properties Thread-Index: AchBacBlbn6AOCMYRzyewwnyysCqkAAAPdXg References: <227621ad0712170524m5bf712adh3b7b62ba7f270110@mail.gmail.com> <227621ad0712172142l363e561dj86bbc8cb6c53d9f@mail.gmail.com> <227621ad0712180332m76ca0a56uf9797969e6e1f5b0@mail.gmail.com> From: "Ard Schrijvers" To: X-Virus-Checked: Checked by ClamAV on apache.org > > You can use contains and 'and' the different terms, ie, >=20 > > "//*[jcr:contains(.,'stephen') and jcr:contains(.,'king')]" > Herein lies the main problem. Say I had a node with 2 values=20 > for the property author, namely "stephen jordan" and "terry king". > The above query would still flag this node as a matching=20 > node, though the same property _actually_ doesn't contain=20 > stephen AND king. Probably the reason for this is that the=20 > property is searched as a whole, and a special case for=20 > multi-value is not made. I understand your problem >=20 > Regarding analysers, I actually have my own analyser, etc. =20 Yes, but I do not think a specific property based analyzer which could still resolve your issue (the way i explained before) > So that is not a problem. Just that a search that I wish=20 > would be enforced only on each single value of a multi-value=20 > property doesn't happen. The search is "spread" across the=20 > property values. >=20 > Is this how it should work? I am not sure wether this is according specs. Anybody else? Regards Ard