我使用windows中的Bitnami安装程序安装了solr。当我使用solarium ping服务器时。
如果使用var_dump($result->getResponse());则一切正常,但如果使用var_dump($result->getdata()),则会收到错误消息,提示无法对JSON进行编码。
类似地,当我试图将数据索引到solr服务器中时,我得到了这个错误。
Fatal error: Uncaught exception 'Solarium\Exception\HttpException' with message 'Solr HTTP error: OK (405) Error 405 HTTP method POST is not supported by this URL<br> HTTP ERROR 405<br> Problem accessing /solr/admin.html. Reason: <br> HTTP method POST is not supported by this URL<br> Powered by Jetty<br> in C:\xampp\htdocs\trial\search\vendor\solarium\solarium\library\Solarium\Core\Query\Result\Result.php on line 104</p> <p>What can be the possible issue?</p>发布于 2015-06-12 23:57:23
Bitnami开发者在这里
这似乎是一个与太阳馆有关的问题,而不是与Bitnami Solr有关。你可以在这里看到这个问题:https://github.com/solariumphp/solarium/issues/101
你可以在那里问。
我希望它能帮上忙
https://stackoverflow.com/questions/30784669
复制相似问题