【发布时间】:2014-03-07 20:41:52
【问题描述】:
我正在尝试将 json 发布到 solr 并不断收到此错误...这是一个自定义字段。
正在使用的命令:java -Dtype=application/json -jar post.jar convertcsv1.json
此处显示的“books.json”示例运行良好:https://wiki.apache.org/solr/UpdateJSON
错误返回:
SimplePostTool version 1.5
Posting files to base url http://localhost:8983/solr/update using content-type application/json..
POSTing file convertcsv1.json
SimplePostTool: WARNING: Solr returned an error #400 Bad Request
SimplePostTool: WARNING: IOException while reading response: java.io.IOException: Server returned HTTP response code: 40
0 for URL: http://localhost:8983/solr/update
1 files indexed.
COMMITting Solr index changes to http://localhost:8983/solr/update..
【问题讨论】: