From java-dev-return-19936-apmail-lucene-java-dev-archive=lucene.apache.org@lucene.apache.org Fri Jun 01 17:53:44 2007 Return-Path: Delivered-To: apmail-lucene-java-dev-archive@www.apache.org Received: (qmail 58664 invoked from network); 1 Jun 2007 17:53:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jun 2007 17:53:42 -0000 Received: (qmail 56265 invoked by uid 500); 1 Jun 2007 17:53:40 -0000 Delivered-To: apmail-lucene-java-dev-archive@lucene.apache.org Received: (qmail 56219 invoked by uid 500); 1 Jun 2007 17:53:40 -0000 Mailing-List: contact java-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-dev@lucene.apache.org Delivered-To: mailing list java-dev@lucene.apache.org Received: (qmail 56195 invoked by uid 99); 1 Jun 2007 17:53:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2007 10:53:40 -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; Fri, 01 Jun 2007 10:53:36 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D3F3071418F for ; Fri, 1 Jun 2007 10:53:15 -0700 (PDT) Message-ID: <10091794.1180720395865.JavaMail.jira@brutus> Date: Fri, 1 Jun 2007 10:53:15 -0700 (PDT) From: "Hoss Man (JIRA)" To: java-dev@lucene.apache.org Subject: [jira] Commented: (LUCENE-901) DefaultSimilarity.queryNorm() should never return Infinity In-Reply-To: <19808204.1180663395572.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/LUCENE-901?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12500782 ] Hoss Man commented on LUCENE-901: --------------------------------- > From a scoring perspective, it's a multiplier that's only used at the top level, so the scores produced will be zero anyway. huh? queryNorm is passed down by BooleanWeight to all of the sub clauses ... am i miss understanding something? > DefaultSimilarity.queryNorm() should never return Infinity > ---------------------------------------------------------- > > Key: LUCENE-901 > URL: https://issues.apache.org/jira/browse/LUCENE-901 > Project: Lucene - Java > Issue Type: Bug > Components: Search > Reporter: Michael Busch > Priority: Trivial > > Currently DefaultSimilarity.queryNorm() returns Infinity if sumOfSquaredWeights=0. > This can result in a score of NaN (e. g. in TermScorer) if boost=0.0f. > A simple fix would be to return 1.0f in case zero is passed in. > See LUCENE-698 for discussions about this. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org For additional commands, e-mail: java-dev-help@lucene.apache.org