gpt4 book ai didi

SOLR '0' 状态 : Communication Error

转载 作者:行者123 更新时间:2023-12-04 18:13:51 29 4
gpt4 key购买 nike

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

“0”状态:通信错误

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

PHP 版本:5.2.2SOLR 版本: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()

最佳答案

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

Solr:4.9,PHP:5.6

关于SOLR '0' 状态 : Communication Error,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14224656/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com