Yes. use 1.2f there.  That method accepts floats, not doubles.  That
could be an error in the Lucene book.

Otis


--- Riccardo Daviddi <[EMAIL PROTECTED]> wrote:

> Why I got this error by writing for example:
> 
> Field senderNameField = Field.Text("senderName", senderName);
> Field subjectField = 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to