[ https://issues.apache.org/jira/browse/SOLR-6546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14172336#comment-14172336 ]
Jan Høydahl commented on SOLR-6546: ----------------------------------- Why should this syntax work when it's not supported by the CSV spec? Correct way to handle multiple values within a field is to encapsulate that field as ONE valid CSV value, and then split by the multi delimiter inside, like in {{"one phrase|another phrase"}}. I'd resolve this as not a problem. > Encapsulation problem when importing CSV with multi-valued fields > ----------------------------------------------------------------- > > Key: SOLR-6546 > URL: https://issues.apache.org/jira/browse/SOLR-6546 > Project: Solr > Issue Type: Bug > Components: contrib - DataImportHandler > Affects Versions: 4.3.1 > Environment: Debian 6, OpenJDK 64-Bit Server VM (1.6.0_31 23.25-b01) > Reporter: Brice > Priority: Minor > Labels: csvparser, difficulty-medium, impact-low > > Importing a CSV file with multi-valued field content like : > "one phrase"|"another phrase" > fail with error message : > <?xml version="1.0" encoding="UTF-8"?> > <response> > <lst name="responseHeader"><int name="status">400</int><int > name="QTime">0</int></lst><lst name="error"><str name="msg">CSVLoader: > input=null, line=0,can't read line: 0 > values={NO LINES AVAILABLE}</str><int name="code">400</int></lst> > </response> > Solr log : > Caused by: java.io.IOException: (line 0) invalid char between encapsulated > token end delimiter > It works with : > "one phrase|another phrase" -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org