Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 91842 invoked from network); 22 Sep 2004 08:52:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 22 Sep 2004 08:52:18 -0000 Received: (qmail 92607 invoked by uid 500); 22 Sep 2004 08:52:05 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 92548 invoked by uid 500); 22 Sep 2004 08:52:04 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 92531 invoked by uid 99); 22 Sep 2004 08:52:03 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=DNS_FROM_RFC_ABUSE X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from [216.136.173.241] (HELO web12704.mail.yahoo.com) (216.136.173.241) by apache.org (qpsmtpd/0.28) with SMTP; Wed, 22 Sep 2004 01:52:02 -0700 Message-ID: <20040922085201.50841.qmail@web12704.mail.yahoo.com> Received: from [195.29.109.11] by web12704.mail.yahoo.com via HTTP; Wed, 22 Sep 2004 01:52:01 PDT Date: Wed, 22 Sep 2004 01:52:01 -0700 (PDT) From: Otis Gospodnetic Subject: Re: Implement custom score To: Lucene Users List In-Reply-To: <211340-22004932272046401@tegenaria.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N You need your own Similarity implementation and you need to set it as shown in this javadoc: http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/search/Similarity.html Otis --- "wille@tegenaria.com" wrote: > Hi, > I know this is probably a common question and I've found a couple of > posts > about it in the archive but none with a complete answer. If there is > one > please point me to it! > > The question is that I want to discard the default scoring and > implement my > own. I want all the the hits to be sorted after popularity (a field) > and > not by anything else. How can I do this? What classes and methods do > I have > to change? > > thanks, > William > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: lucene-user-help@jakarta.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org