Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 37530 invoked from network); 5 Apr 2006 15:32:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Apr 2006 15:32:08 -0000 Received: (qmail 94515 invoked by uid 500); 5 Apr 2006 15:31:58 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 94487 invoked by uid 500); 5 Apr 2006 15:31:57 -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 94475 invoked by uid 99); 5 Apr 2006 15:31:57 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2006 08:31:57 -0700 X-ASF-Spam-Status: No, hits=2.8 required=10.0 tests=DNS_FROM_RFC_POST,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 62.15.139.10 is neither permitted nor denied by domain of gm.tagliani@aladus.com) Received: from [62.15.139.10] (HELO oficinas.aladus.com) (62.15.139.10) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Apr 2006 08:31:57 -0700 Received: from [127.0.0.1] (gianmarco.intranet.aladus.com [172.20.3.11]) by oficinas.aladus.com (Postfix) with ESMTP id A60D92ED27 for ; Wed, 5 Apr 2006 17:31:34 +0200 (CEST) Message-ID: <4433E2EC.4050709@aladus.com> Date: Wed, 05 Apr 2006 17:31:56 +0200 From: Gian Marco Tagliani User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: java-user@lucene.apache.org Subject: lucene sorting Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi, I need to change the lucene sorting to give just a bit more relevance to the recent documents (but i don't want to sort by date). I'd like to mix the lucene score with the date of the document. I'm following the example in "Lucene in Action", chapter 6. I'm trying to extends the SortComparatorSource but I don't understand how to get the lucene score of the document. Do you have some idea about how to solve my problem? Or do you know where get some more example on custom sorting? Thanks, Gian Marco --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org