Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 80592 invoked from network); 30 Apr 2007 23:44:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Apr 2007 23:44:15 -0000 Received: (qmail 89639 invoked by uid 500); 30 Apr 2007 23:44:15 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 89308 invoked by uid 500); 30 Apr 2007 23:44:14 -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 89295 invoked by uid 99); 30 Apr 2007 23:44:14 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Apr 2007 16:44:14 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Received: from [169.229.70.167] (HELO rescomp.berkeley.edu) (169.229.70.167) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 30 Apr 2007 16:44:07 -0700 Received: by rescomp.berkeley.edu (Postfix, from userid 1007) id E6CF35B76C; Mon, 30 Apr 2007 16:43:45 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by rescomp.berkeley.edu (Postfix) with ESMTP id C3B977F403 for ; Mon, 30 Apr 2007 16:43:45 -0700 (PDT) Date: Mon, 30 Apr 2007 16:43:45 -0700 (PDT) From: Chris Hostetter To: java-user@lucene.apache.org Subject: Re: Modifying norms... In-Reply-To: <10262494.post@talk.nabble.com> Message-ID: References: <10259327.post@talk.nabble.com> <10262494.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Checked: Checked by ClamAV on apache.org : Thanks Hoss. Suppose, I go ahead and modify Similarity.java from ... : Should this work ? it depends on your definition of "work" ... if that code is what you want it to do, then yes: it will do what you want it to do. : P.S. This is a very custom implementation. For the specific problem that I : have, the lengthNorm : is set to 1 (independent of numTerms). if your length norm is always 1, why do you care what the norm values are? are you using document and field boosts? ... if "no" then none of this shoudl matter. if "yes" then why not just change the boost values you use to get the behavior you want instead of modifying the encoding mechanism? -Hoss --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org