当我尝试索引一个目录中的文件时,我收到此错误消息。重现此错误的步骤如下:
$ bin/solr stop -all
$ bin/solr start -e cloud
How many solr nodes ...? 2
Please enter the port for node1 [8983] 8983
Please enter the port for node2 [7574] 7574
Please provide a name for your new collection [gettingstarted] test
How many shard would you like to split test to [2] 2
How many replicas per shard .... [2] 2
Please choose a configuration for test collection .... basic_configs
然后,如果我转到Core Admin选项卡下的localhost:8983/solr/#/
,我会看到我们刚刚创建的新集合test
的两个分片。然后我想索引我的一个文件夹,并将此索引与test
集合相关联。我是这样做的:
bin/post -c test ~/Projects/
结果,我看到文件是如何被编入索引的,但在所有这些信息中,我看到了很多这样的警告:
SimplePostTool: WARNING: Response Solr returned an error #400 (Bad request) for url
http://localhost:8983/solr/test/update
....
SimplePostTool: WARNING: IOException while reading response: java.io.IOException;
Server returned HTTP response code: 400 for URL http://localhost/8983/solr/test/update
我做错了什么?