当前位置:Gxlcms > PHP教程 > coreseek-shpinx-mmseg-coreseek在searchd服务后,通过php接口文件sphinxapi.php就无法成功??

coreseek-shpinx-mmseg-coreseek在searchd服务后,通过php接口文件sphinxapi.php就无法成功??

时间:2021-07-01 10:21:17 帮助过:35人阅读

请教大家一个问题,我的环境是win10, 在cmd命令行下, coreseek-3.2.14-win32 一切正常,但在 searchd服务后,通过php接口文件sphinxapi.php 就无法成功?? 求大神指导!!代码错误提示如下

SphinxClient Object ( [_host] => localhost [_port] => 9312 [_offset] => 0 [_limit] => 20 [_mode] => 1 [_weights] => Array ( ) [_sort] => 0 [_sortby] => [_min_id] => 0 [_max_id] => 0 [_filters] => Array ( ) [_groupby] => [_groupfunc] => 0 [_groupsort] => @group desc [_groupdistinct] => [_maxmatches] => 1000 [_cutoff] => 0 [_retrycount] => 0 [_retrydelay] => 0 [_anchor] => Array ( ) [_indexweights] => Array ( ) [_ranker] => 0 [_rankexpr] => [_maxquerytime] => 0 [_fieldweights] => Array ( ) [_overrides] => Array ( ) [_select] => * [_error] => connection to localhost:9312 failed (errno=10060, msg=由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。) [_warning] => [_connerror] => 1 [_reqs] => Array ( ) [_mbenc] => [_arrayresult] => 1 [_timeout] => 5 [_path] => [_socket] => )

回复内容:

请教大家一个问题,我的环境是win10, 在cmd命令行下, coreseek-3.2.14-win32 一切正常,但在 searchd服务后,通过php接口文件sphinxapi.php 就无法成功?? 求大神指导!!代码错误提示如下

SphinxClient Object ( [_host] => localhost [_port] => 9312 [_offset] => 0 [_limit] => 20 [_mode] => 1 [_weights] => Array ( ) [_sort] => 0 [_sortby] => [_min_id] => 0 [_max_id] => 0 [_filters] => Array ( ) [_groupby] => [_groupfunc] => 0 [_groupsort] => @group desc [_groupdistinct] => [_maxmatches] => 1000 [_cutoff] => 0 [_retrycount] => 0 [_retrydelay] => 0 [_anchor] => Array ( ) [_indexweights] => Array ( ) [_ranker] => 0 [_rankexpr] => [_maxquerytime] => 0 [_fieldweights] => Array ( ) [_overrides] => Array ( ) [_select] => * [_error] => connection to localhost:9312 failed (errno=10060, msg=由于连接方在一段时间后没有正确答复或连接的主机没有反应,连接尝试失败。) [_warning] => [_connerror] => 1 [_reqs] => Array ( ) [_mbenc] => [_arrayresult] => 1 [_timeout] => 5 [_path] => [_socket] => )

人气教程排行