Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 70837 invoked from network); 22 Oct 2007 13:06:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Oct 2007 13:06:14 -0000 Received: (qmail 41684 invoked by uid 500); 22 Oct 2007 13:05:58 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 41658 invoked by uid 500); 22 Oct 2007 13:05:58 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 41639 invoked by uid 99); 22 Oct 2007 13:05:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Oct 2007 06:05:58 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.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; Mon, 22 Oct 2007 13:06:02 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5.7235.2 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: spellchecker Date: Mon, 22 Oct 2007 15:05:20 +0200 Message-ID: In-Reply-To: <47024A3B.3080406@gmx.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: spellchecker Thread-Index: AcgE+dU0pxQo+hNVRviCr0nCupn6LQPsi+QA References: <4700E79E.7070602@gmx.net> <1191242077.3241.23.camel@bslm-046.corp.day.com> <4700ECDB.8040403@gmx.net> <4700F1BA.2050209@gmx.net> <47024A3B.3080406@gmx.net> From: "Ard Schrijvers" To: X-Virus-Checked: Checked by ClamAV on apache.org > Marcel Reutegger wrote: > the primary use case is in fact a 'did you mean' functionality. >=20 > e.g. if a query does not return the expected results (too few=20 > results, or whatever the application thinks is not=20 > appropriate) you would then execute the following query: >=20 > /jcr:root[rep:spellcheck('softeware')]/(rep:spellcheck()) >=20 > this will always return the root node of the workspace=20 > because rep:spellcheck() with a string always evaluates to=20 > true. the string literal is the same as the one you can pass=20 > to a jcr:contains() function. the function rep:spellcheck()=20 > without arguments is a pseudo property which refers to the=20 > previous function and returns a suggestion for the misspelled=20 > statement or null if the statement is correctly spelled. Thanks for the explanation Marcel (I have been on holiday hence my late reaction) Regards Ard >=20 > regards > marcel >=20