使用 simpleposttool 将 csv 上传到 solr
uploading csv into solr with simpleposttool
我想使用 simpleposttool 将我的 .csv 文件上传到我的 solr 核心,但是有一个问题。我的 excel 使用分号 ; 创建 .csv 文件,因为我将分号 ; 替换为逗号 , 。但是在我的 .csv 文件的数据中还有一些其他逗号 ,,所以当我尝试上传 .csv 文件时,出现此错误。
error
17个逗号分隔数据,但有些数据也有逗号。我已经处理这个问题很长时间了,但对我来说没有任何进展。
你可以configure the separator with the separator
argument when uploading CSV files.
&separator=%3B
(%3B
是 ;
的 URL 编码版本)
您可以通过添加 -params "separator=%3B"
.
为 bin/post
commparameters 提供额外的参数
我想使用 simpleposttool 将我的 .csv 文件上传到我的 solr 核心,但是有一个问题。我的 excel 使用分号 ; 创建 .csv 文件,因为我将分号 ; 替换为逗号 , 。但是在我的 .csv 文件的数据中还有一些其他逗号 ,,所以当我尝试上传 .csv 文件时,出现此错误。
error
17个逗号分隔数据,但有些数据也有逗号。我已经处理这个问题很长时间了,但对我来说没有任何进展。
你可以configure the separator with the separator
argument when uploading CSV files.
&separator=%3B
(%3B
是 ;
的 URL 编码版本)
您可以通过添加 -params "separator=%3B"
.
bin/post
commparameters 提供额外的参数