...索速度有好处 我怀疑是这么多字段索引造成的压力 [php]$xs=new XS('shi'); $search=$xs->search; $docs=$search->setQuery($keyword)->setLimit(12,($list_page-1)*12)->search(); $count=$search->getLastCount(); $time=$search->setQuery($keyword)->setSort('time')->setLimit(22)->search(...
XSServer All Packages | 属性 | 方法(函数) 包 XS 继承关系 class XSServer » XSComponent 子类 XSIndex, XSSearch 版本 1.0.0 源代码 sdk/php/lib/XSServer.class.php XSServer 服务器操作对象 同时兼容于 indexd, searchd, 所有交互均...
..._arg=0, int $res_cmd=128) $cmd mixed 要提交的指令, 若不是 XSCommand 实例则作为构造函数的第一参数创建对象 $res_arg int 要求的响应参数, 默认为 XS_CMD_NONE 即不检测, 若检测结果不符 则认为命令调用失败, 会返回 false 并设...
...l 刷新成功返回 true, 失败则返回 false 源码: sdk/php/lib/XSIndex.class.php#L466 (显示) public function flushIndex(){ try { $this->execCommand(XS_CMD_INDEX_COMMIT, XS_CMD_OK_DB_COMMITED); } catch (XSException $e) { if ($e->getCode() === XS_CMD_ERR_BUSY || $e->...
1 定时优化 crontab -e 30 3 * * * /usr/local/xunsearch/bin/xs-optimize.sh 项目名 service crond reload #注意 xs-optimize.sh 会报home错误 将17行home = $prefix/data/$1中间的空格去掉 home=$prefix/data/$1 2 提高索引更新速度 xs-indexd -h 看到 -q这个参数 默认...
quit, result error (CODE:514): XS.php(2092): Unknown Internal Error(S#600) XS.php(1550): Unexpected respond in search {CMD:129, ARG:600} quit, IO error (ERROR:Broken pipe): XS.php(2165): Failed to recv the data from server completely (SIZE:0/8, REASON:timeout) quit, IO timeout (TIMEOUT:...
...了几次 一直爆这个错误 不知为何? INFO: stopping server[xs-indexd] (BIND:127.0.0.1:8383) .... [OK] INFO: re-starting server[xs-indexd] ... (BIND:127.0.0.1:8383) INFO: stopping server[xs-searchd] (BIND:127.0.0.1:8384) .... [OK] INFO: re-starting server[xs-searchd] ... (BIND:127.0....
...持: <端口号|host:port|本地套接字路径> 源码: sdk/php/lib/XSServer.class.php#L165 (显示) public function open($conn){ $this->close(); $this->_conn = $conn; $this->_flag = self::BROKEN; $this->_sendBuffer = ''; $this->_project = null; $this->connect(); $this->_f...
...# /usr/local/php/bin/php /home/www/www.it486586.com/crontab/index.php hour xs_clear PHP Fatal error: Uncaught [XSException] www.it486586.com/data/api/xs/lib/XS.php(2443): Connection refused(C#111, 127.0.0.1:8383) thrown in /home/www/www.it486586.com/data/api/xs/lib/XS.php on line 2443 success ...
...行运行脚本一切OK 浏览器访问报错,Fatal error: Uncaught [XSException] ../xunsearch/sdk/php/lib/XS.php(2204): Connection timed out(C#110) thrown in /xunsearch/sdk/php/lib/XS.php on line 2204 或者 Fatal error: Uncaught [XSException] .. nsearch/sdk/php b/XS.php(2204): php_network_...