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这个参数 默认...
你可以用debug那个调试一下,看看怎么回事!/usr/local/xunsearch/sdk/php/util/XSDataSource.class.php
[root@web www]# /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 ...
...project xxx/xiangshan.ini[/php] 注意:自动忽略无效的过滤器 [/usr/local/xunsearch/sdk/php/util/filter.php] 初始化数据源 ... mysql://xxx@localhost/phpcms [XSException] ../usr/local/xunsearch/sdk/php/util/XSDataSource.class.php(794): SQLSTATE[42000] [1064] You have an error in you...
...lBox xunsearch # cat setup.log checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... confi...
...d_dict(ini_get("scws.default.fpath") . '/dict.utf8.xdb'); $so->add_dict("/usr/myapp/dict_extra.txt",SCWS_XDICT_TXT); $so->set_rule(ini_get('scws.default.fpath') . '/rules.utf8.ini'); 结果分词无效果.好像是加载不到词库一样...试了很多次.都不行. 路径和权限我确定...
...@ ; 以下词为删除项 删除 1.0 1.0 ! scws -d /usr/local/scws/dict_extra.txt -c utf-8 我是新增词 我 是 新 增 词 再试一个 再试一个
...数据9g多 为了优化性能,数据放入内存了 /dev/shm/data on /usr/local/xunsearch/data 跟踪信息如下,麻烦老大给看看情况 应用地址 http://dict.qinbei.com [root@www ~]# ps -axu|grep search Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.8/F...
...] index = both tokenizer = full 2. 导入相关数据 require_once '/usr/local/xunsearch/sdk/php/lib/XS.php'; $xs = new XS('goods'); $data = array( 'goods_id' => 112, 'goods_name' => 'hello my goodsname', 'goods_sn' => 'RX8899-114' ); $doc = new XSDocument; $doc...
...use --build, --host, --target configure: WARNING: invalid host type: /mnt/usr/local/xunsearch configure: error: expected an absolute directory name for --prefix: cd ----- ERROR: failed to configure scws, see 'setup.log' for more detail[hr] 怎么没人回答??