Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 23061 invoked from network); 28 Feb 2005 08:06:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 28 Feb 2005 08:06:36 -0000 Received: (qmail 52860 invoked by uid 500); 28 Feb 2005 08:06:32 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 52639 invoked by uid 500); 28 Feb 2005 08:06:31 -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 52625 invoked by uid 99); 28 Feb 2005 08:06:31 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from Unknown (HELO virusscanner1.minfin.be) (193.191.216.11) by apache.org (qpsmtpd/0.28) with ESMTP; Mon, 28 Feb 2005 00:06:29 -0800 Received: from finmfe1-hw.minfin.fed.be (localhost [127.0.0.1]) by virusscanner1.minfin.be (8.11.6+Sun/8.11.6) with ESMTP id j1S8vPD14307 for ; Mon, 28 Feb 2005 08:57:25 GMT Received: from BEBRULIBOISC ([10.12.4.216]) by finmfe1.minfin.fed.be (iPlanet Messaging Server 5.2 HotFix 1.14 (built Mar 18 2003)) with SMTP id <0ICM005GJ3Y9PP@finmfe1.minfin.fed.be> for lucene-user@jakarta.apache.org; Mon, 28 Feb 2005 09:08:33 +0100 (MET) Date: Mon, 28 Feb 2005 09:05:23 +0100 From: Claude Libois Subject: Boost doesn't works To: lucene-user@jakarta.apache.org Message-id: <003101c51d6c$41382840$d8040c0a@eu.uis.unisys.com> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 X-Mailer: Microsoft Outlook Express 6.00.2800.1437 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7BIT X-Priority: 3 X-MSMail-priority: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hello. I'm using Lucene for an application and I want to boost the title of my documents. For that I use the setBoost method that is applied on the title field. However when I look with luke(1.6) I don't see any boost on this field and when I do a search the score isn't change. What's wrong? Here is the code where I set the boost factor. public Document getDocument() throws TechnicalException { Document doc = new Document(); log.trace(new TraceMessage("will add title,resume,content,date to the Lucene Document")); Field field = Field.UnStored("Content",content); doc.add(field); doc.add(Field.Text("Summary", summary)); field = Field.Text("Title", title); field.setBoost(10); doc.add(field); return doc; } Do I have to do something else to activate boosting? Claude Libois claude.libois@guest.minfin.fed.be Technical associate - Unisys --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org