Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 91448 invoked from network); 10 Aug 2009 08:00:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 10 Aug 2009 08:00:37 -0000 Received: (qmail 33370 invoked by uid 500); 10 Aug 2009 08:00:42 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 33320 invoked by uid 500); 10 Aug 2009 08:00:41 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 33310 invoked by uid 99); 10 Aug 2009 08:00:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 08:00:41 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of claudio.gennaro@isti.cnr.it designates 194.119.192.6 as permitted sender) Received: from [194.119.192.6] (HELO ITANIUM.ISTI.CNR.IT) (194.119.192.6) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Aug 2009 08:00:32 +0000 Received: from conversionlocal.isti.cnr.it by mx.isti.cnr.it (PMDF V6.4 #31598) id <01NCCQEOWGW09X3ZW7@mx.isti.cnr.it> for java-user@lucene.apache.org; Mon, 10 Aug 2009 09:59:03 +0200 Received: from ultralisca ([217.201.15.143]) by mx.isti.cnr.it (PMDF V6.4 #31599) with ESMTPA id <01NCCQB4UV8Q9S3VXS@mx.isti.cnr.it> for java-user@lucene.apache.org; Mon, 10 Aug 2009 09:59:03 +0200 Date: Mon, 10 Aug 2009 09:55:56 +0200 From: Claudio Gennaro Subject: sumOfSquaredWeights for lengthNorm To: java-user@lucene.apache.org Message-id: <001e01ca1990$6d4c9180$47e5b480$%gennaro@isti.cnr.it> MIME-version: 1.0 X-Mailer: Microsoft Office Outlook 12.0 Content-type: multipart/alternative; boundary="Boundary_(ID_hf/vOB2nC+4sPHPqSLtGdg)" Content-language: it Thread-Index: AcoZj/33UOSpqntRTtWrUvXMPCJPkQ== X-INSM-ip-source: 217.201.15.143 Auth Done X-Virus-Checked: Checked by ClamAV on apache.org --Boundary_(ID_hf/vOB2nC+4sPHPqSLtGdg) Content-type: text/plain; charset="us-ascii" Content-transfer-encoding: 7bit Dear all, I read a very old message on the list about the use of sumOfSquaredWeights in lengthNorm (Mon, 06 Mar 2006 19:06:28 GMT from Eugene). I just wanted to do the same, i.e., to override the Similarity class of Lucene in order to normalize the term weights of a doc with the sum of the squares of doc term frequencies in the doc. Cheers Claudio --Boundary_(ID_hf/vOB2nC+4sPHPqSLtGdg)--