0

当我尝试从 MySQL 索引数据时出现此错误。

我需要做什么?

Fatal error: Uncaught exception 'Apache_Solr_HttpTransportException' with message ''400' Status: Bad Request' in C:\Projects\Libraries\Apache\Solr\Service.php:364 Stack trace: #0 C:\Projects\Libraries\Apache\Solr\Service.php(669): Apache_Solr_Service->_sendRawPost('http://localhos...', '<add allowDups=...') #1 C:\Projects\Libraries\Apache\Solr\Service.php(697): Apache_Solr_Service->add('<add allowDups=...') #2 C:\Projects\dasaran\public\index.php(27): Apache_Solr_Service->addDocument(Object(Apache_Solr_Document)) #3 {main} thrown in C:\Projects\Libraries\Apache\Solr\Service.php on line 364
4

1 回答 1

0

I found the problem.

I had a unique field id, but I didn't input a value to that field.

Just a suggestion to all beginners as I am, read error logs.

于 2013-05-03T07:37:55.490 回答