Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 75843 invoked from network); 5 Aug 2005 12:11:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Aug 2005 12:11:30 -0000 Received: (qmail 87788 invoked by uid 500); 5 Aug 2005 12:11:23 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 87766 invoked by uid 500); 5 Aug 2005 12:11:22 -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 87753 invoked by uid 99); 5 Aug 2005 12:11:22 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2005 05:11:22 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of rdaviddi@gmail.com designates 64.233.184.200 as permitted sender) Received: from [64.233.184.200] (HELO wproxy.gmail.com) (64.233.184.200) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Aug 2005 05:11:11 -0700 Received: by wproxy.gmail.com with SMTP id 69so29187wri for ; Fri, 05 Aug 2005 05:11:19 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=V57o7NpboFQOg4GbwPJfMHmPEsxyQrUDaDumjS78D6y0WASCigLu/8tOcRbeGiXWZUaUO2WULao8qEHGEU9W25NBfK24L1EO2J7emLrKzPiNUuHo+z+ipouZFlTO3VxJe5UEoVsUWWm2bPqM1G9zL0G3uy55r0dbMQXw0S3rbbU= Received: by 10.54.45.14 with SMTP id s14mr2476711wrs; Fri, 05 Aug 2005 05:11:19 -0700 (PDT) Received: by 10.54.94.10 with HTTP; Fri, 5 Aug 2005 05:11:19 -0700 (PDT) Message-ID: <8a484a7805080505112dd32c1a@mail.gmail.com> Date: Fri, 5 Aug 2005 14:11:19 +0200 From: Riccardo Daviddi Reply-To: Riccardo Daviddi To: java-user@lucene.apache.org Subject: Re: setBoost(float) in org.apache.lucene.document.Field cannot be applied to (double)??? In-Reply-To: <20050804212104.21827.qmail@web31113.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <8a484a7805080404346657105b@mail.gmail.com> <20050804212104.21827.qmail@web31113.mail.mud.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N It seems it doesn't change the boost factors and that is strange, I did as in the manual, I thought it was easy, I just use: fieldname.setBoost(1.2f); and then I add to the doc that field, and I index the doc. All the indexing process goes ok, only these boost factors are different from what I do in the code. Any idea? On 8/4/05, Otis Gospodnetic wrote: > Yes. use 1.2f there. That method accepts floats, not doubles. That > could be an error in the Lucene book. >=20 > Otis >=20 >=20 > --- Riccardo Daviddi wrote: >=20 > > Why I got this error by writing for example: > > > > Field senderNameField =3D Field.Text("senderName", senderName); > > Field subjectField =3D Field.Text("subject", subject); > > subjectField.setBoost(1.2); > > > > as in the manual lucene in action?? > > > > 1.2 is a double, but the method wants a float? > > -- > > Riccardo Daviddi > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > > For additional commands, e-mail: java-user-help@lucene.apache.org > > > > >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org > For additional commands, e-mail: java-user-help@lucene.apache.org >=20 >=20 --=20 Riccardo Daviddi University of Siena - Information Engeneering rdaviddi@gmail.com --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org