Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 58884 invoked from network); 16 Nov 2005 05:34:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Nov 2005 05:34:26 -0000 Received: (qmail 75056 invoked by uid 500); 16 Nov 2005 05:34:24 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 74230 invoked by uid 500); 16 Nov 2005 05:34:21 -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 74219 invoked by uid 99); 16 Nov 2005 05:34:21 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2005 21:34:21 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [81.103.221.49] (HELO mta09-winn.ispmail.ntl.com) (81.103.221.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Nov 2005 21:35:55 -0800 Received: from aamta12-winn.ispmail.ntl.com ([81.103.221.35]) by mta09-winn.ispmail.ntl.com with ESMTP id <20051116053359.GPOW8609.mta09-winn.ispmail.ntl.com@aamta12-winn.ispmail.ntl.com>; Wed, 16 Nov 2005 05:33:59 +0000 Received: from jhi ([81.98.13.34]) by aamta12-winn.ispmail.ntl.com with SMTP id <20051116053358.ETDY18425.aamta12-winn.ispmail.ntl.com@jhi>; Wed, 16 Nov 2005 05:33:58 +0000 Message-ID: <000c01c5ea6f$58d68390$b900a8c0@jhi> From: "gekkokid" To: , References: <20051116052133.72218.qmail@web90208.mail.scd.yahoo.com> Subject: Re: How to give weight to document when adding to the index? Date: Wed, 16 Nov 2005 05:33:56 -0000 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N boosting the document using the method setBoost(double), i think the param is a double but not sure, it works on both Document and Field objects lil'example: Document d = new Document(); d.add(Field.Keyword("name","gekkokid")); d.setBoost(1.1); // default is 1.0 i believe writer.addDocument(d); _gk ----- Original Message ----- From: "Supheakmungkol SARIN" To: Sent: Wednesday, November 16, 2005 5:21 AM Subject: How to give weight to document when adding to the index? > Dear Luceners, > > I'd like to give different weight to each of the documents in the index. > Is it possible to do this at the time we add the document to the index? > > Regards, > > Mungkol > > > > > > > > --------------------------------- > Yahoo! FareChase - Search multiple travel sites in one click. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org