...lor]--[/size] 1. [libscws] scws_set_dict(scws_t s, const char *fpath, int mode); scws_add_dict(scws_t s, const char *fpath, int mode); scws_set_dict 为原有功能,scws_add_dict 是新增功能,2者功能相当接近,只是 scws_set_dict 会把 scws handler 现存的词库表 清...
...ini文件的路径打全! [/quote] 我是这样弄的 php的 safe_mode=On safe_mode_include_dir = /usr/local/xunsearch/sdk/php/lib/ 这样require './XS.php'; 会报错 Fatal error: require() [function.require]: Failed opening required './XS.php' (include_path='.:/www/wdlinux/nginx_php-5....
谢谢回复。 另外scws结构体中:unsigned char *mblen; unsigned int mode;这两个成员也应该是可以多个线程共用的。
版本 scws-1.1.7 环境 ubuntu ./scws -h 其中 -M use multi child words mode(�й���->�й�+��+�й���) [attachment=35]
这是PHP的safe mode 导致的,自己配置好就行了。 命令行测试时乱码大概是编码不对,你可以尝试在命令后加上 -cgbk
...2, PID:17370, USER:NULL) 11:42:16 logging[17370] ALERT >> running in scan mode (HOME:data/, STAT_TAG:2014-W35) 2014-09-01 11:42:16 indexd[17233] ERROR failed to find db by pid (PID:17370) 2014-09-01 12:13:42 indexd[17233] NOTICE import exit (DB:c_books.db, FLAG:0x0000, PID:17352, EXIT:-2) 2014-0...
...lor]--[/size] 1. [libscws] scws_set_dict(scws_t s, const char *fpath, int mode); scws_add_dict(scws_t s, const char *fpath, int mode); scws_set_dict 为原有功能,scws_add_dict 是新增功能,2者功能相当接近,只是 scws_set_dict 会把 scws handler 现存的词库表 清...
...超长词(255字以上)unsigned char溢出 */ if ((item == NULL) || ((s->mode & SCWS_IGN_SYMBOL) && !memcmp(item->attr, attr_un, 2))) return; [/code]
...f struct { xdict_t d; rule_t r; unsigned char *mblen; unsigned int mode; unsigned char *txt; int len; int off; scws_res_t res0; scws_res_t res1; word_t **wmap; struct scws_zchar *zmap; } scws_st, *scws_t; struct scws_zchar { int start; int end; }; 注:xdict_t 和 rule_t ...
...>off = off; ch = txt[off]; ! if (SCWS_CHAR_TOKEN(ch) && !(s->mode & SCWS_IGN_SYMBOL)) { s->off++; SCWS_PUT_RES(off, 0.0, 1, attr_un); [/code]