# /usr/local/xunsearch/bin/xs-searchd -l /usr/local/xunsearch/tmp/searchd.log -b 192.168.5.180:8384 -k start WARNING: server[xs-searchd] is running (BIND:192.168.5.180:8384, PID:3938) # /usr/local/xunsearch/bin/xs-searchd -l /usr/local/xunsearch/tmp/searchd.log -b 192.168.5.180:8384 -k stop INFO: st...
...------------------------------------------\n"; $i = 1; foreach ($ret as $tmp) { printf("%02d.\t%-16s\t%s\t%d\t%.2f\n", $i++, $tmp['word'], $tmp['attr'], $tmp['times'], $tmp['weight']); } $cws->close(); utf8编码好像使用不了,我把所有文件(ini,php,包括test.php)都改成utf8...
...ommand($cmd, XS_CMD_OK_SCWS_RESULT); while ($res->buf !== '') { $tmp = unpack('Ioff/a4attr/a*word', $res->buf); $tmp['word'] = XS::convert($tmp['word'], self::$_charset, 'UTF-8'); $words[] = $tmp; $res = self::$_server->getRespond(); } return $words;} 获取...
...y, $page); $res = $this->execCommand($cmd, XS_CMD_OK_RESULT_BEGIN); $tmp = unpack('Icount', $res->buf); $this->_lastCount = $tmp['count']; // load vno map to name of fields $ret = $this->_facets = array(); $vnoes = $this->xs->getScheme()->getVnoMap(); // get result documents ...
我刚才讲错了,这个错误意思是无法写入 $prefix/tmp 目录,你看看文件是事存在 其实你也可以看一下 tmp/indexd.log 末尾几行看看怎么说,里面会有相应的错误信息 tail -100 tmp/indexd.log
...cCommand($cmd, XS_CMD_OK_SCWS_TOPS); while ($res->buf !== '') { $tmp = unpack('Itimes/a4attr/a*word', $res->buf); $tmp['word'] = XS::convert($tmp['word'], self::$_charset, 'UTF-8'); $words[] = $tmp; $res = self::$_server->getRespond(); } return $words;} 获...
...或是什么情况 。 现现这个情况的时候建议查看一下 tmp/indexd.log 是否有相关的错误日志,以及 tmp/*.rcv, tmp/*.snd 文件的大小。
...t=list; else{ xdb_tree_plist plist = _xdb_tree_plist,tmp_plist = _xdb_tree_plist; while (tmp_plist != NULL) { plist = tmp_plist; tmp_plist = tmp_plist->next; } plist->next = list; } ...
是 $prefix/tmp 目录,对于运行xs的用户来说没有创建文件的权限吧 试着 chmod a+rwx tmp/
是 $prefix/tmp 目录,对于运行xs的用户来说没有创建文件的权限吧 试着 chmod a+rwx tmp/