Return-Path: Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: (qmail 18666 invoked from network); 11 Feb 2011 23:17:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Feb 2011 23:17:24 -0000 Received: (qmail 91919 invoked by uid 500); 11 Feb 2011 23:17:22 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 91461 invoked by uid 500); 11 Feb 2011 23:17:21 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 91436 invoked by uid 99); 11 Feb 2011 23:17:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 23:17:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 23:17:20 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 559071A0971 for ; Fri, 11 Feb 2011 23:17:00 +0000 (UTC) Date: Fri, 11 Feb 2011 23:17:00 +0000 (UTC) From: "Robert Muir (JIRA)" To: dev@lucene.apache.org Message-ID: <677629075.11875.1297466220345.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <437088037.5892.1297277583207.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Resolved: (LUCENE-2912) remove field param from computeNorm, scorePayload ; remove UOE'd lengthNorm, switch SweetSpot to per-field MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-2912?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Muir resolved LUCENE-2912. --------------------------------- Resolution: Fixed Assignee: Robert Muir Committed revision 1069980. > remove field param from computeNorm, scorePayload ; remove UOE'd lengthNorm, switch SweetSpot to per-field > ----------------------------------------------------------------------------------------------------------- > > Key: LUCENE-2912 > URL: https://issues.apache.org/jira/browse/LUCENE-2912 > Project: Lucene - Java > Issue Type: Improvement > Reporter: Robert Muir > Assignee: Robert Muir > Fix For: 4.0 > > Attachments: LUCENE-2912.patch > > > In LUCENE-2236 we switched sim to per field (SimilarityProvider returns a per-field similarity). > But we didn't completely cleanup there... I think we should now do this: > * SweetSpotSimilarity loses all its hashmaps. Instead, just configure one per field and return it in your SimilarityProvider. this means for example, all its TF factors can now be configured per-field too, not just the length normalization factors. > * computeNorm and scorePayload lose their field parameter, as its redundant and confusing. > * the UOE'd obselete lengthNorm is removed. I also updated javadocs that were pointing to it (this is bad!). -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org