应该是与服务端建立连接没有成功吧
可能是你没有开启监听服务,你先查下 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...
close() 方法 public void close() 源码: sdk/php/util/XSDataSource.class.php#L569 (显示) public function close(){ if (is_resource($this->link)) { pg_close($this->link); $this->link = null; }} 关闭数据库连接
...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; // 直接输出异常描述...
...tion('SQLITE ERROR: ' . sqlite_error_string($this->link)); } if (!is_resource($res)) { $ret = $res; } else { $ret = array(); while ($tmp = sqlite_fetch_array($res, SQLITE_ASSOC)) { $ret[] = $tmp; } } return $ret;} 执行 SQL 语句查询
...ql_errno($this->link) . '): ' . mysql_error($this->link)); } if (!is_resource($res)) { $ret = $res; } else { $ret = array(); while ($tmp = mysql_fetch_assoc($res)) { $ret[] = $tmp; } mysql_free_result($res); } return $ret;} 执行 SQL ...