: I am using curl to run the following and as soon as I convert the field type
: from string to tdouble, I get the errors you see below.
: 
: 0:0:0:0:0:0:0:1 -  -  [08/12/2010:23:28:27 +0000] "GET
: 
/solr/update/csv?commit=true&separator=%2C&fieldnames=id,name,asciiname,lat,lng,countrycode,population,elevation,gtopo30,timezone,modificationdate,cat&stream.file=C:\tmp\allCountries\xaa.csv&overwrite=true&stream.contentType=text/plain;charset=utf-8
: HTTP/1.1" 500 4023
: 
: I am trying to index coordinates in decimal degrees so many of them have
: negative values. Could this be the problem?
        ...
: Dec 8, 2010 6:28:27 PM org.apache.solr.common.SolrException log
: SEVERE: java.lang.NumberFormatException: For input string: "lat"

the problem is you are trying to index the literal string "lat" as a 
numberic value.

Check your CSV file and look for that string.

(the CSV Handler, by default, assumes the first line of hte file contains 
column names, but it looks like in your case perhaps there is another line 
in the file that also contains the column names? ... just a hunch)




-Hoss

Reply via email to