应该是与服务端建立连接没有成功吧
可能是你没有开启监听服务,你先查下 8383或者8384 端口的状态(查询命令: netstat -an |grep 8383),如果没有输出信息,你可以试着对照你本机环境运行下面的命令(先切换到你本机xunsearch的安装目录下): bin/xs-ctl.sh -b local start...
...ption] xunsearch/sdk/php/lib/XS.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,还请高手多多指教
...->arg < 1 || $this->arg > 255) { throw new XSException('Invalid argument for ' . __CLASS__ . ': ' . $arg); } }}
...->arg < 1 || $this->arg > 255) { throw new XSException('Invalid argument for ' . __CLASS__ . ': ' . $arg); } }}
.../local/xunsearch/sdk/php/lib/XS.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; ...
...->arg < 1 || $this->arg > 255) { throw new XSException('Invalid argument for ' . __CLASS__ . ': ' . $arg); } }} getTokens() 方法 public void getTokens($value, $doc=NULL) $value $doc 源码: sdk/php/lib/XSTokenizer.class.php#L116 (显示) ...
... Fatal error: Uncaught [XSErrorException] ../../..(243): array_sum(): The argument should be an array(2) thrown in D:\web\www[/align]\so\sdk\php\lib\XS.php on line 477
...->arg < 1 || $this->arg > 255) { throw new XSException('Invalid argument for ' . __CLASS__ . ': ' . $arg); } }} getTokens() 方法 public void getTokens($value, $doc=NULL) $value $doc 源码: sdk/php/lib/XSTokenizer.class.php#L147 (显示) ...
.../local/xunsearch/sdk/php/lib/XS.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):...