Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 74396 invoked from network); 19 Dec 2006 20:59:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Dec 2006 20:59:24 -0000 Received: (qmail 57607 invoked by uid 500); 19 Dec 2006 20:59:22 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 57572 invoked by uid 500); 19 Dec 2006 20:59:22 -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 57551 invoked by uid 99); 19 Dec 2006 20:59:22 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Dec 2006 12:59:22 -0800 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 markrmiller@gmail.com designates 66.249.82.234 as permitted sender) Received: from [66.249.82.234] (HELO wx-out-0506.google.com) (66.249.82.234) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Dec 2006 12:59:10 -0800 Received: by wx-out-0506.google.com with SMTP id i29so2227239wxd for ; Tue, 19 Dec 2006 12:58:50 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=dIq88leRoUHsBW6xs50SXBTf7y4w1ZgMQWkG5vqVtoQ1ju2JFU4M1l0ryvXVO7JQ4i7TPAIo4/vQBBHzm1ywgwn/FDZIAUcWZmQGTB/rATpBbWnZHCH25VtS+eMUuAwIPDJPrZB0rh9C2nECssSWhn0gTGhfdoQ5+v/oV3kmWXs= Received: by 10.90.103.2 with SMTP id a2mr6046948agc.1166561929877; Tue, 19 Dec 2006 12:58:49 -0800 (PST) Received: from ?192.168.1.102? ( [216.66.114.42]) by mx.google.com with ESMTP id g7sm15469853wra.2006.12.19.12.58.48; Tue, 19 Dec 2006 12:58:48 -0800 (PST) Message-ID: <45885289.8080604@gmail.com> Date: Tue, 19 Dec 2006 15:58:49 -0500 From: Mark Miller User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: Re: sorting by per doc hit count References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Thanks for the tip Doron, What if I replace the decode static method in Similiarity so that it returns 1 always for the HitPerDocSimiliarity? This would not require a re-index right? Doron Cohen wrote: > "Mark Miller" wrote on 19/12/2006 09:21:00: > >> LIA mentioned something about needing to rebuild the >> index if you change Similarity's. That does not make >> sense to me yet. It would seem you could alternate them. >> What does scoring have to do with indexing? >> > > For this part of your question, the length norms of fields are computed at > indexing time and stored in the index (as field norms). If your modified > Similarity changes the length norm computation, re-indexing is required. > See > http://lucene.apache.org/java/docs/api/org/apache/lucene/search/Similarity.html#formula_norm > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org > > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org