[ 
https://issues.apache.org/jira/browse/SOLR-11547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16221588#comment-16221588
 ] 

Yonik Seeley commented on SOLR-11547:
-------------------------------------

You just need to tell Solr what format the CSV is in.
https://lucene.apache.org/solr/guide/6_6/uploading-data-with-index-handlers.html#UploadingDatawithIndexHandlers-CSVFormattedIndexUpdates

See the description for "escape":
"The character used for escaping CSV separators or other reserved characters. 
If an escape is specified, the encapsulator is not used unless also explicitly 
specified since most formats use either encapsulation or escaping, not both"

So just set escape to backslash and you should be good (that will disable 
encapsulation processing)

> CSVParser can not correctly read data 
> --------------------------------------
>
>                 Key: SOLR-11547
>                 URL: https://issues.apache.org/jira/browse/SOLR-11547
>             Project: Solr
>          Issue Type: Wish
>      Security Level: Public(Default Security Level. Issues are Public) 
>    Affects Versions: 5.3.1
>            Reporter: chenmin
>
> 1、when  update index by csv :
> C825700400271B9BC8256CBB00263BA2,"text"testcsvformat,1232,sdfd .
> 2、CSVParser can not correctly read data because the data include ' ," '.
> i think solr shoud deal  with this situation.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to