[英]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 文件时,我收到了这个错误。
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.