Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 31462 invoked from network); 1 Jun 2007 20:45:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jun 2007 20:45:55 -0000 Received: (qmail 81187 invoked by uid 500); 1 Jun 2007 20:45:52 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 81146 invoked by uid 500); 1 Jun 2007 20:45:51 -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 81135 invoked by uid 99); 1 Jun 2007 20:45:51 -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 13:45:51 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of walt.stoneburner@gmail.com designates 209.85.146.182 as permitted sender) Received: from [209.85.146.182] (HELO wa-out-1112.google.com) (209.85.146.182) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Jun 2007 13:45:46 -0700 Received: by wa-out-1112.google.com with SMTP id k17so856213waf for ; Fri, 01 Jun 2007 13:45:26 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=KtokUaHzgLrSuaHioKCVk6saAC3B34uxiUgnN2jUQ788kasYomyKW7Pveqk7lQzSUwCjF3dxfzlq3HZ2kz6vYpjRvKsL7juQjEr57kUza6rPfhefEQ3lS8gUXmU27g/lyY6tWlTGzNvOdBXZhGxrYTOWiXjM1O+3JE9L0ggVfk8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=sKQXNmDn47OVamjv3d3tUuRcKSHBScFW3awC3EDyzeD41rtcBPJZZRYViY6d76BtaTAdUdGzDvLfw9k72BYaZ6B+DPcLZkfhrc1KcTR4EspSiO+dCOLu/0qi4L7i6SONoTdqpGFwyRHGWeSG8daXCS+ZkvI77OCDK3rfdcO0t8s= Received: by 10.114.108.15 with SMTP id g15mr2178428wac.1180730726260; Fri, 01 Jun 2007 13:45:26 -0700 (PDT) Received: by 10.115.32.13 with HTTP; Fri, 1 Jun 2007 13:45:26 -0700 (PDT) Message-ID: Date: Fri, 1 Jun 2007 16:45:26 -0400 From: "Walt Stoneburner" To: java-user@lucene.apache.org Subject: The values which compute scores. - Part II MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org I've managed to build my own Similarity class, plug it in, and use Explain to convince myself that I am, indeed, getting the correct weightings that I desire. My test case documents are yielding precisely the intermediate values needed for alternate scoring. There's just one thing... When I do an .explain(), I'm getting values back for the fieldNorm() that are improperly biasing my scores. According to http://www.mail-archive.com/lucene-user@jakarta.apache.org/msg06275.html, this value is actually computed at index time. Indeed, that is the case, for if I generate a new index using my custom Similarity class, the bias disappears and all is right with the world. However, I'm not exactly thrilled at the prospect of maintaining a second index. Recall from the initial message that users will be toggling between the standard scoring and the alternative. And while, yes, I know that this value is precomputed and stored in the index, what I'd like to be able to do is simply ignore it. Somewhere the code that computes that big huge scoring equation has to pull that value and use it. I figure if I override -that-, I can simply ignore the value and treat fieldNorm() as 1 when the custom version is used. Only problem is, I'm not sure if this is a property set somewhere, a method override in a replacement class, or some more brain surgery on my one-off version of Lucene. Gurus, may I approach? -wls --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org