On Tue, Jun 21, 2011 at 2:15 AM, Rafał Kuć wrote:
> Hello!
>
> Once again thanks for the response ;) So the solution is to generate
> the data files once again and either adding the space after doubled
> encapsulator
Maybe...
I can't tell if the file is encoded correctly or not since I don't
know
Hello!
Once again thanks for the response ;) So the solution is to generate
the data files once again and either adding the space after doubled
encapsulator or changing the encapsulator to the character that does
not occur in the filed values (of course the one taht will be
split).
--
Regards,
Multi-valued CSV fields are double encoded.
We start with: "aaa ""bbb""ccc"'
Then decoding one leve, we get: aaa "bbb"ccc
Decoding again to get individual values results in a decode error
because the encapsulator appears unescaped in the middle of the second
value (i.e. invalid CSV).
One easier
Hi!
Yonik, thanks for the reply. I just realized that the example I gave
was not full - the error is returned by Solr only when the field is
multivalued and the values in the fields are splited. For example, the
following curl command give me the mentioned error:
curl
'http://localhost:8983/sol
This works fine for me:
curl http://localhost:8983/solr/update/csv -H
'Content-type:text/plain' -d 'id,name
"1","aaa ""bbb"" ccc"'
-Yonik
http://www.lucidimagination.com
On Mon, Jun 20, 2011 at 3:17 PM, Rafał Kuć wrote:
> Hello!
>
> I have a question about the CSV update handler. Lets say I h
Hello!
I have a question about the CSV update handler. Lets say I have the
following file sent to CSV update handler using curl:
id,name
"1","aaa ""bbb""ccc"
It throws an error, saying that:
Error 400 java.io.IOException: (line 0) invalid char between encapsulated token
end delimiter
If I cha