SOLR'0'状态:通信错误

时间:2013-01-08 21:52:12

标签: solr

我正在使用SOLR索引文档。我从mysql数据库创建索引。我在PHP上创建了一个在wamp服务器上运行的索引。我正在使用SOLR PHP客户端来创建索引。当我从部署了SOLR的服务器创建索引时,一切正常。但是当我尝试从另一台机器创建索引时,我收到以下错误:

'0'状态:通讯错误

我尝试更改php套接字超时,solr commitlocktimeout和solr writelocktimeout。但我仍然得到同样的错误。当我从solr服务器itslef创建索引时,没有错误。

PHP版本:5.2.2 SOLR版本:1.4.1

知道为什么会这样吗?

谢谢

以下是我的堆栈跟踪:

'0' Status: Communication Error#0 C:\wamp\www\nist\application\library\SolrPhpClient\Apache\Solr\Service.php(672): Apache_Solr_Service->_sendRawPost('http://129.107....', '<add allowDups=...')
#1 C:\wamp\www\nist\application\library\SolrPhpClient\Apache\Solr\Service.php(736): Apache_Solr_Service->add('<add allowDups=...')
#2 C:\wamp\www\nist\application\library\Nist\Console\NistSolrIndex.php(106): Apache_Solr_Service->addDocuments(Array)
#3 C:\wamp\www\nist\application\library\Nist\Console\CrawlUNT.php(346): Nist_Console_NistSolrIndex->createIndex()
#4 C:\wamp\www\nist\application\library\Nist\Console\CrawlUNT.php(89): Nist_Console_CrawlUNT->CrawlParseAndIndexProfiles()
#5 C:\wamp\www\nist\application\Bootstrap.php(107): Nist_Console_CrawlUNT->run(Object(Zend_Console_Getopt))
#6 C:\wamp\www\nist\application\Bootstrap.php(78): Bootstrap->_runConsoleApp()
#7 C:\wamp\www\dkumar\mentis-libs\Zend\Application.php(366): Bootstrap->run()
#8 C:\wamp\www\nist\index.php(37): Zend_Application->run()

1 个答案:

答案 0 :(得分:1)

我们更改密码时遇到了同样的问题。它是由新密码中的特殊字符引起的。删除&#39; @&#39;,&#39; /&#39; &#39;()&#39;解决了这个问题。

Solr:4.9,PHP:5.6