Hi Rob,

I think the wrong Content-type header is getting passed. Try one of these
instead:

curl '
http://localhost:8983/solr/update/csv?commit=true&separator=%09&stream.file=/tmp/sample.tmp
'

OR

curl 'http://localhost:8983/solr/update/csv?commit=true&separator=%09' -H
'Content-type:application/csv; charset=utf-8' --data-binary @sample.tmp

Regards,
Aloke


On Fri, Aug 23, 2013 at 6:15 PM, Jack Krupansky <j...@basetechnology.com>wrote:

>   Your data file appears to use spaces rather than tabs.
>
> -- Jack Krupansky
>
>  *From:* Rob Koeling Ai <rob.koel...@ai-applied.com>
> *Sent:* Friday, August 23, 2013 6:38 AM
> *To:* solr-user@lucene.apache.org
> *Subject:* Problem with importing tab-delimited csv file
>
>
> I'm having trouble importing a tab-delimited file with the csv update
> handler.
>
> My data file looks like this:
>
>  "id" "question" "answer" "url"
> "q99" "Who?" "You!" "none"
>
> When I send this data to Solr using Curl:
>
>  curl '
> http://localhost:8181/solr/development/update/csv?commit=true&separator=%09'<http://localhost:8181/solr/development/update/csv?commit=true&separator=%09%27>--data
>  @sample.tmp
>
> All seems to be well:
>
>  <?xml version="1.0" encoding="UTF-8"?>
> <response>
> <lst name="responseHeader"><int name="status">0</int><int
> name="QTime">221</int></lst>
> </response>
>
>
> But when I query the development core, there is no data. I must be
> overlooking something trivial. I would appreciate if anyone could spot what!
>
>   - Rob
>
>
>
>
>

Reply via email to