From java-user-return-37006-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Thu Nov 06 10:59:42 2008 Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 65058 invoked from network); 6 Nov 2008 10:59:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Nov 2008 10:59:40 -0000 Received: (qmail 4673 invoked by uid 500); 6 Nov 2008 10:59:40 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 4640 invoked by uid 500); 6 Nov 2008 10:59:40 -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 4629 invoked by uid 99); 6 Nov 2008 10:59:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2008 02:59:40 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of anshumg@gmail.com designates 209.85.200.172 as permitted sender) Received: from [209.85.200.172] (HELO wf-out-1314.google.com) (209.85.200.172) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2008 10:58:24 +0000 Received: by wf-out-1314.google.com with SMTP id 28so573585wfc.20 for ; Thu, 06 Nov 2008 02:59:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=4HYvwkqtBjU8pFfwpz9kJfiQX4gEPLu+LyBQF11LgOs=; b=hDybAexxxqOa+X2nZ0d8L5UE7mJbeSFstdUNT6YQAWXUz6oujccAzMBXhRg0TCaYKZ NBUonr25BtdD6IVrgsvMwyH4gaBoC4hDtE/eHUgVJFbz7CDhC4yNxHJccBLTUnXKXkQt cVWRaRtR+vOHu7sfeb4c92mRd89ixPVD+EFLc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=bDpmpWjlA2OwWk8S2BhxsFpr5zGeQ98hpnVEVMA0Zh2cFkNtNySYOeze88/p/2nQ2b Gaytfoymu/Mng5XbE0LhsYA2IA4lBnKi2rtlG484iazyhG+Fo6nfSo+jV6pcSAVV2aHO 1x5/FhUkax/Y2K/NZfm3gdaDSIVss1zB0UkWA= Received: by 10.142.177.5 with SMTP id z5mr390779wfe.40.1225969145970; Thu, 06 Nov 2008 02:59:05 -0800 (PST) Received: by 10.142.113.16 with HTTP; Thu, 6 Nov 2008 02:59:05 -0800 (PST) Message-ID: <867513fe0811060259g114e2878tf0910b1d2b534335@mail.gmail.com> Date: Thu, 6 Nov 2008 16:29:05 +0530 From: Anshum To: java-user@lucene.apache.org Subject: Re: possible score value In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_20990_2430588.1225969145964" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_20990_2430588.1225969145964 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Fransisco, Did you come across : scoreNorm = 1.0f / topDocs.getMaxScore(); or something of this sort in Hits? As per my knowledge, the initial score is more than 1 but finally the scores get divided by the maxScore of the matched doc set. i.e. Setting an upper limit of 1 (for the max scorer). Hope this clarifies things! :) -- Anshum Gupta Naukri Labs! http://ai-cafe.blogspot.com The facts expressed here belong to everybody, the opinions to me. The distinction is yours to draw............ On Thu, Nov 6, 2008 at 4:20 PM, Francisco Borges wrote: > Hello, > > I have been going through the scoring documentation and code. > > I had the expectation that Lucene would enforce a score value between > [0,1]. > But from what I can grasp from the code and docs, score values can be > greater than one. > > Does Lucene considers score values greater than 1 as valid? > > Kind regards, > -- > Francisco > ------=_Part_20990_2430588.1225969145964--