我正在使用nelmio/solarium-bundle
。我已经配置了这个捆绑包,但我在运行这个测试文件时出错:
Symfony/供应商/日光浴室/日光浴室/examples/1.1-check-solarium-and-ping.php
这是错误:
Fatal error: Uncaught exception 'Solarium'Exception'HttpException' with message ' in C:'wamp'www'Symfony2'vendor'solarium'solarium'library'Solarium'Core'Query'Result'Result.php on line 103
Solarium'Exception'HttpException: Solr HTTP error: OK (404) <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /solr/admin/ping was not found on this server.</p> <hr> <address>Apache/2.4.9 (Win64) PHP/5.5.12 Server at 127.0.0.1 Port 80</address> </body></html> in C:'wamp'www'Symfony2'vendor'solarium'solarium'library'Solarium'Core'Query'Result'Result.php on line 103
这是我的config.yml
:中捆绑包的配置
nelmio_solarium: ~
我修改了config.dist.php
文件:
$config = array(
'endpoint' => array(
'localhost' => array(
'host' => '127.0.0.1',
'port' => null,
'path' => '/solr',
)
)
);
为什么您的端口为null,应该是8983之类的。