简体   繁体   English

使用 simpleposttool 将 csv 上传到 solr

[英]uploading csv into solr with simpleposttool

I want to upload my .csv file into my solr core using simpleposttool but there is a problem.我想使用 simpleposttool 将我的 .csv 文件上传到我的 solr 核心,但有一个问题。 My excel creates .csv file with semicolon ;我的 excel 用分号创建 .csv 文件 because of that I'm replacing semicolon ;因此,我正在替换分号 with comma , .用逗号, . But there are some other comma , in my .csv file's data, so when I'm trying to upload .csv file, I'm getting this error.但是在我的 .csv 文件的数据中还有一些其他的逗号所以当我尝试上传 .csv 文件时,我收到了这个错误。

error错误

17 commas separates datas but some datas has commas either. 17 个逗号分隔数据,但有些数据也有逗号。 I've been dealing with this for a long time but there is no progress for me.我已经处理这个问题很长时间了,但对我来说没有任何进展。

You can configure the separator with the separator argument when uploading CSV files .您可以在上传 CSV 文件时使用separator参数配置分隔separator

&separator=%3B

( %3B is the URL encoded version of ; ) %3B是编码的版本的URL ;

You can give extra parameters to the bin/post commparameters by adding -params "separator=%3B" .您可以通过添加-params "separator=%3B"bin/post commparameters 提供额外的参数。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM