Return-Path: Delivered-To: apmail-lucene-lucy-dev-archive@minotaur.apache.org Received: (qmail 96797 invoked from network); 6 Apr 2010 18:40:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 6 Apr 2010 18:40:01 -0000 Received: (qmail 13191 invoked by uid 500); 6 Apr 2010 18:40:01 -0000 Delivered-To: apmail-lucene-lucy-dev-archive@lucene.apache.org Received: (qmail 13166 invoked by uid 500); 6 Apr 2010 18:40:01 -0000 Mailing-List: contact lucy-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucy-dev@lucene.apache.org Delivered-To: mailing list lucy-dev@lucene.apache.org Received: (qmail 13158 invoked by uid 99); 6 Apr 2010 18:40:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Apr 2010 18:40:01 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [192.203.201.122] (HELO barracuda01.mpr.org) (192.203.201.122) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Apr 2010 18:39:55 +0000 X-ASG-Debug-ID: 1270579174-048fced50001-5q9osT Received: from HQMAIL07.mpr.org (hqesnode03.mpr.org [10.2.2.102]) by barracuda01.mpr.org with ESMTP id HfS9QuKTAzXBl2CF; Tue, 06 Apr 2010 13:39:34 -0500 (CDT) X-Barracuda-Envelope-From: peter@peknet.com X-ASG-Whitelist: Client Received: from mail.mpr.org ([10.2.2.87]) by HQMAIL07.mpr.org with Microsoft SMTPSVC(6.0.3790.3959); Tue, 6 Apr 2010 13:39:34 -0500 Received: from pkarmanpc ([10.2.6.1]) by mail.mpr.org with Microsoft SMTPSVC(6.0.3790.3959); Tue, 6 Apr 2010 13:39:34 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) by pkarmanpc (Postfix) with ESMTP id ED56821A8F6; Tue, 6 Apr 2010 13:39:33 -0500 (CDT) Message-ID: <4BBB7FE5.3000901@peknet.com> Date: Tue, 06 Apr 2010 13:39:33 -0500 From: Peter Karman User-Agent: Thunderbird 2.0.0.24 (X11/20100317) MIME-Version: 1.0 To: lucy-dev@lucene.apache.org, "KinoSearch discussion list." X-ASG-Orig-Subj: Re: get_score == nan Subject: Re: get_score == nan References: <4BBB67D8.3040505@peknet.com> <20100406182005.GA8960@rectangular.com> In-Reply-To: <20100406182005.GA8960@rectangular.com> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 06 Apr 2010 18:39:34.0425 (UTC) FILETIME=[80C01090:01CAD5B8] X-Barracuda-Connect: hqesnode03.mpr.org[10.2.2.102] X-Barracuda-Start-Time: 1270579174 X-Barracuda-URL: http://barracuda.mpr.org:8000/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at mpr.org Marvin Humphrey wrote on 04/06/2010 01:20 PM: > On Tue, Apr 06, 2010 at 11:56:56AM -0500, Peter Karman wrote: >> Is there any legitimate way that $hitdoc->get_score would return a value >> that Perl stringifies to 'nan'? > > When using a SortSpec that doesn't include scoring, yes. In that case, > SortCollector assigns 'nan' to the MatchDoc score member and it never gets > overwritten with a real value. We optimize the "score not needed" case and > avoid the cost of calculating scores. ah ok. That's likely what's happening (SortSpec with no scoring). Thanks. -- Peter Karman . http://peknet.com/ . peter@peknet.com