Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 40609 invoked from network); 1 Feb 2007 13:50:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Feb 2007 13:50:56 -0000 Received: (qmail 91667 invoked by uid 500); 1 Feb 2007 13:50:59 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 90684 invoked by uid 500); 1 Feb 2007 13:50:56 -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 90673 invoked by uid 99); 1 Feb 2007 13:50:56 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Feb 2007 05:50:56 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of lists@nabble.com designates 72.21.53.35 as permitted sender) Received: from [72.21.53.35] (HELO talk.nabble.com) (72.21.53.35) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Feb 2007 05:50:46 -0800 Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1HCcKU-0001eL-BE for java-user@lucene.apache.org; Thu, 01 Feb 2007 05:50:22 -0800 Message-ID: <8748508.post@talk.nabble.com> Date: Thu, 1 Feb 2007 05:50:22 -0800 (PST) From: liquideshark To: java-user@lucene.apache.org Subject: Re: problem with field.setboost(5.0f) on lucene 2.00 In-Reply-To: <359a92830702010512n71c63d2cia1a5622126b3ebd1@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: tandimail@gmail.com References: <8746530.post@talk.nabble.com> <359a92830702010512n71c63d2cia1a5622126b3ebd1@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Yes you are right but i have change it to: ------------------------------------------------ Field tiTle = new Field("title",httpd.getTitle(),Field.Store.YES,Field.Index.TOKENIZED ); tiTle.setBoost(6.1f); doc.add(tiTle); ----------------------------------------------- it still dont make any change on the boost value, for information i use luke.jar to see if the value had change nice reading you again Tandina Erick Erickson wrote: > > I haven't played with boosts, but I suspect your ordering is wrong. You've > already added the field to the document before you set the boost. Try > Field f = new Field()... > > f.setBoost() > > doc.add(f). > > writer.addDoc(doc).. > > Best > Erick > > On 2/1/07, liquideshark wrote: >> >> >> iam building up a search engine using lucene 2.0, and iam having problem >> using the term boost "setboost" a part of my code is : >> and my code is : >> >> doc.add(new >> Field("title",httpd.getTitle(),Field.Store.YES,Field.Index.TOKENIZED )); >> doc.getField("title").setboost(5.0f);// <=== the boost wont update to >> 5.0 >> it remain 1.0 >> writer.addDocument(doc); >> writer.optimize(); >> writer.close(); >> >> but when i look up in the index created the field title is still 1.0 >> can some one help me thx >> -- >> View this message in context: >> http://www.nabble.com/problem-with-field.setboost%285.0f%29-on-lucene-2.00-tf3154250.html#a8746530 >> Sent from the Lucene - Java Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org >> For additional commands, e-mail: java-user-help@lucene.apache.org >> >> > > -- View this message in context: http://www.nabble.com/problem-with-field.setboost%285.0f%29-on-lucene-2.00-tf3154250.html#a8748508 Sent from the Lucene - Java Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org