Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 40220 invoked from network); 26 Jul 2004 15:32:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 26 Jul 2004 15:32:20 -0000 Received: (qmail 23984 invoked by uid 500); 26 Jul 2004 15:32:09 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 23950 invoked by uid 500); 26 Jul 2004 15:32:09 -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 23934 invoked by uid 99); 26 Jul 2004 15:32:09 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [212.135.149.8] (HELO gateway.klearsystems.com) (212.135.149.8) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 26 Jul 2004 08:32:05 -0700 Received: from [192.168.7.24] ([192.168.7.24]) (authenticated bits=0) by gateway.klearsystems.com (8.12.9/8.12.9) with ESMTP id i6QFagnh030019 for ; Mon, 26 Jul 2004 16:36:42 +0100 (BST) Subject: Boosting documents From: Rob Clews To: Lucene Users List In-Reply-To: <1090855036.2590.15.camel@dell-inspiron> References: <1090855036.2590.15.camel@dell-inspiron> Content-Type: text/plain Organization: Klear Systems Ltd Date: Mon, 26 Jul 2004 16:31:44 +0100 Message-Id: <1090855904.9386.15.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 1.5.90 (1.5.90-5) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N I want to do the same, set a boost for a field containing a date that lowers as the date is further from now, is there any way I could do this? Also when I set a document boost at index time, with doc.setBoost(2); then retrieve it via doc.getBoost() I always seem to get 1.0, even though I can tell from a search that the boost works correctly. I realise the docs say that the returned value may not be the same as the indexed value, but should I always get 1? Essentially I'm trying to allow an administrator to set the boost on the document through my webapp. Thanks On Mon, 2004-07-26 at 17:17 +0200, Akmal Sarhan wrote: > I want to boost those with the oldest age to have a better score for > example but in conjunction with other criteria (therefore the new Sort > will not help I guess) -- Rob Clews Klear Systems Ltd t: +44 (0)121 707 8558 e: robc@klearsystems.com --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org