On 10/24/07, Alf Eaton <[EMAIL PROTECTED]> wrote:
> I'm trying to use the bf parameter to boost a dismax query based on the value 
> of a certain (integer) field. The trouble is that for some of the documents 
> this field is empty (rather than zero), which means that there's an error 
> when using the bf parameter:
> -----
> select?q=query+string&qf=body&qt=dismax&bf=intfield
> -----
>
> java.lang.NumberFormatException: For input string: ""

It looks like you are indexing a zero-length string for that field.
Instead, completely leave the field out.

In the future, we should probably have Solr remove (not index) empty
non-string fields.

-Yonik

Reply via email to