Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
7.3
-
None
-
None
Description
It is possible to import CSV that contains newlines in the field content, it just needs to be escaped.
However, if that field is split, any content from lines after the first is lost. It does not matter if the split character is new line or anything else, existing or not.
Example
id,text1,text2 1,"t1.line1 t1.line2 t1.line3",t2 2,t1.oneline,t2.oneline
// bin/solr create -c splittest // bin/post -c splittest test.csv (creates "text1":["t1.line1\nt1.line2\nt1.line3"]) // bin/post -c splittest -params "f.text1.split=true&f.text1.separator=^" test.csv (creates "text1":["t1.line1"])