: *Here is what i get on the console,*
: 
: May 12, 2008 9:57:20 AM org.apache.solr.core.SolrException log
: 
: SEVERE: org.apache.solr.core.SolrException: missing content stream

...ah, ok -- when you say "on the console" you mean the console where you 
are running jetty and getting the log output...

: May 12, 2008 9:57:20 AM org.apache.solr.core.SolrCore execute
: INFO: /update/csv
: id,cat,name,price,inStock,author_t,series_t,sequence_i,genre_s
: 0553573403,book,A Game of Thrones,7.99,true,George R.R. Martin,"A Song of
: Ice an
: d Fire",1,fantasy
: 0553579908,book,A Clash of Kings,7.99,true,George R.R. Martin,"A Song of Ice
        ....
: 080508049X,book,The Black Cauldron,5.99,true,Lloyd Alexander,The Chronicles
: of P
: rydain,2,fantasy
: = 0 15

...that's strange, the data is clearly making it to the server since it 
shows up in the log, but i really can't reproduce the error you are 
getting.

It almost seems like maybe the data was getting passed as a GET instead 
of a POST (all of that CSV data is showing up in the log where query 
params are normally listed) ... but even when i put a "-G" on the command 
line to try and force a GET request, i only get the header line of the CSV 
logged by Jetty ... but that might be line ending oddness between 
linux/windows.

Can anyone else using windows reproduce this using curl and books.csv?

can you try adding "-X POST" to your curl command and see if that changes 
anything? ...

curl http://localhost:8983/solr/update/csv -X POST --data-binary @books.csv -H 
'Content-type:text/plain; charset=utf-8'


-Hoss

Reply via email to