应该是与服务端建立连接没有成功吧
可能是你没有开启监听服务,你先查下 8383或者8384 端口的状态(查询命令: netstat -an |grep 8383),如果没有输出信息,你可以试着对照你本机环境运行下面的命令(先切换到你本机xunsearch的安装目录下): bin/xs-ctl.sh -b local start...
....php(2207): stream_set_blocking(): supplied argument is not a valid stream resource(2) thrown in /home/wwwroot/xunsearch/sdk/php/lib/XS.php on line 504 刚接触xunsearch,还请高手多多指教
...出来,三个进程,有一个进程starce就不动,另外一个提示Resource temporarily unavailable 14179 ? 00:00:00 xs-searchd 14186 ? 00:00:01 xs-searchd 14193 ? 00:00:00 xs-searchd 14212 pts/0 00:00:00 ps 31168 ? 00:00:47 xs-indexd 31171 ? 00:00:00 ...
...,将无法正确操作。包含的方法有: class SimpledCWS { resource handle; bool close(void); bool set_charset(string charset) bool set_dict(string dict_path) bool set_rule(string rule_path) bool set_ignore(bool yes) bool set_multi(bool yes) bool send_text(string t...
...dy\fenci.php on line 4 Warning: scws_set_dict() expects parameter 1 to be resource, null given in E:\soft\PHPnow-1.5.6\htdocs\phpstudy\fenci.php on line 4 Notice: Undefined variable: sh in E:\soft\PHPnow-1.5.6\htdocs\phpstudy\fenci.php on line 5 Warning: scws_set_rule() expects parameter 1 to be ...
....php(2213): stream_set_blocking(): supplied argument is not a valid stream resource(2)[/b] 代码: try { include '/usr/local/xunsearch/sdk/php/lib/XS.php'; $xs = new XS('demo'); $docs = $xs->search->search('15'); } catch (XSException $e) { echo $e; // 直接输出异常描述...
...中,对应的原型如下: 函数调用形式:bool scws_set_dict(Resource scws_handler, string filepath[, int mode = SCWS_XDICT_XDB]); bool scws_add_dict(Resource scws_handler, string filepath[, int mode = SCWS_XDICT_XDB]); bool scws_has_word(R...
...中,对应的原型如下: 函数调用形式:bool scws_set_dict(Resource scws_handler, string filepath[, int mode = SCWS_XDICT_XDB]); bool scws_add_dict(Resource scws_handler, string filepath[, int mode = SCWS_XDICT_XDB]); bool scws_has_word(R...
....php(2207): stream_set_blocking(): supplied argument is not a valid stream resource(2) #0 ../usr/local/xunsearch/sdk/php/lib/XS.php(2207): xs_error_handler(2, 'stream_set_bloc...', '/usr/local/xuns...', 2207, Array) #1 ../usr/local/xunsearch/sdk/php/lib/XS.php(2027): XSServer->connect(NULL, true) ...