在 scws.c 中,由于取词时使用一个 unsigned char 来记录分词的长度,存在特殊情况即通过 rules.ini 自动识别出来的词有可能超过 255 字,如全部连续的双字节数字或字母.超过 255 字后 这里的 j 将变得不正确可能导致 item-> 指向 NULL ,...
不知你有没有注意到 configure 的结果里,总是显示 checking if zts is enabled... no 问题应该是在这儿 我这儿的FREEBSD,LINUX都是正常的,PHP 4.4.X和PHP5.2.X都测试过~ 查看一下 /usr/local/php/include/php/main/php_config.php 里面是否有 #define ZTS 1 ...
应该是php安装的有问题?你编译时用的 phpize 和你的 php-cgi 是否配套的呢 看上去是 non-zts,但可能你的 php-cgi 却是 zts 的,所以 core_global_id 会未定义。建议重新编译一下,把 phpize , php-config 用和 php-cgi 配套的。。。 configure时...
....in' seems to ignore the --datarootdir setting config.status: creating libscws/Makefile config.status: WARNING: 'libscws/Makefile.in' seems to ignore the --datarootdir setting config.status: creating etc/Makefile config.status: WARNING: 'etc/Makefile.in' seems to ignore the --datarootdir setti...
... included from ../../include/my_global.h:80, from plugin_scws.c:20: ../../include/my_config.h:1059:1: warning: "PACKAGE" redefined :6:1: warning: this is the location of the previous definition ../../include/my_config.h:1065:1: warning: "PACKAGE_NAME" redefined :1:1: warning: t...
...是采用 C/C++ 开发多线程服务端,索引设计基于 Xapian 和 scws 中文分词。单库最多支持 40 亿条数据,在 500 万网页大约 1.5TB 的数据中检索时间不超过 1 秒(非缓存)。 [b]简单易用:[/b]前端是使用脚本语言编写的开发工具 (SDK),目...
...示) public function getVersion(){ $cmd = new XSCommand(XS_CMD_SEARCH_SCWS_GET, XS_CMD_SCWS_GET_VERSION); $res = self::$_server->execCommand($cmd, XS_CMD_OK_INFO); return $res->buf;} 获取 scws 版本号
...下份,并重启了服务。 我现在的问题是想通过XSTokenizerScws来获取指定文本的自定义分词结果。sdk使用了github里最新的版本,词典格式由一楼所示,现在取出来的结果并不包含任何自定义词典的关键词,求解。[/code] [php] $te...
... included from ../../include/my_global.h:80, from plugin_scws.c:20: ../../include/my_config.h:1059:1: warning: "PACKAGE" redefined :6:1: warning: this is the location of the previous definition ../../include/my_config.h:1065:1: warning: "PACKAGE_NAME" redefined :1:1: warning: t...
...ing for fsync... yes checking: Command not found. gateway2# checking for scws... yes: /usr/local/xunsearch checking for pread... yes checking: Command not found. checking for scws_new in -lscws... no gateway2# configure: error: scws_new() NOT found in libscws, please check it first. checking ...