Return-Path: Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: (qmail 65069 invoked from network); 9 May 2007 13:58:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 9 May 2007 13:58:46 -0000 Received: (qmail 32525 invoked by uid 500); 9 May 2007 13:58:43 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 32505 invoked by uid 500); 9 May 2007 13:58:43 -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 32487 invoked by uid 99); 9 May 2007 13:58:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2007 06:58:43 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 May 2007 06:58:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 49D2471403F for ; Wed, 9 May 2007 06:58:15 -0700 (PDT) Message-ID: <2166544.1178719095275.JavaMail.jira@brutus> Date: Wed, 9 May 2007 06:58:15 -0700 (PDT) From: "Marcel Reutegger (JIRA)" To: dev@jackrabbit.apache.org Subject: [jira] Resolved: (JCR-906) Introduce similarity function In-Reply-To: <2594977.1178716335278.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/JCR-906?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Marcel Reutegger resolved JCR-906. ---------------------------------- Resolution: Fixed Fix Version/s: 1.4 Added function rep:similar() I copied the MoreLikeThis class from the lucene similar contribution in order to not create a new dependency. To work properly this function requires that the parameter 'supportHighlighting' is set to 'true'. If the parameter is not set the rep:similar() function will not match any similar nodes. Committed in revision: 536515 > Introduce similarity function > ----------------------------- > > Key: JCR-906 > URL: https://issues.apache.org/jira/browse/JCR-906 > Project: Jackrabbit > Issue Type: New Feature > Components: query > Reporter: Marcel Reutegger > Priority: Minor > Fix For: 1.4 > > > The query handler should support a similarity function that allows one to find nodes that are similar to a given existing one. > Example: > //*[rep:similar("/foo/bar")] > Finds nodes that are similar to node /foo/bar. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.