2012-3-29: SCWS-1.2.0 Released. 1) 修改 php 扩展代码以兼容支持 php 5.4.x 2) 修正 php 扩展中 scws_get_tops 的 limit 参数不允许少于 10 的问题 3) libscws 增加 scws_fork() 从既有的 scws 实例产生分支并共享词典/规则集,主要用于多线程开发。 4)...
//保护迅搜文件 include SRCPATH.'libs/xunsearch/lib/XS.php'; $this->temp_db = $ci->load->database ( $table_db_array[$table], TRUE ); //建立 XS 对象 $xs = new XS($project_name); //获取 索引对象 $index = $xs->index; $doc = new XSDocument; $result = array(); ...
ZENDCORE 这个介绍就不多说了。 我估计是由于ZENDCORE是PHP-CGI运行模式。所以应该是NTS。所以不支持。 加载了还是一直提示找不到文件。 [undefined=undefined]Note: Extensions marked with a symbol '!' indicate that an inconsistency occurred between the s...
[php][root@west123110 tmp]# dd bs=64k count=4k if=/dev/zero of=test oflag=dsync 记录了4096+0 的读入 记录了4096+0 的写出 268435456字节(268 MB)已复制,24.6265 秒,10.9 MB/秒 [/php] 经hightman老大测试,似乎是硬盘的读取速度太慢了。 好吧,看来要换个...
...} $cws->close(); utf8编码好像使用不了,我把所有文件(ini,php,包括test.php)都改成utf8编码存储,header输出的也是utf8编码,执行默认的test.php,产生乱码,不知道问题出现在哪?dict.utf8.xdb是新下载的没有动,非常感谢。 另外一个...
...c os下编译正常,但是无法运行。。。以下是错误日志: PHP Warning: PHP Startup: Unable to load dynamic library '/Applications/AMPPS/php-5.3/lib/extensions/ext/scws.so' - dlopen(/Applications/AMPPS/php-5.3/lib/extensions/ext/scws.so, 9): no suitable image found. Did find:\n\t/A...
...检索速度有好处 我怀疑是这么多字段索引造成的压力 [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)->sear...
...以确认是bug,我有一个同事独立安装xapian和scws,利用lib/xs.php的内容,作了修改,得出的值明显是准确的.也就是xapian本身可以得出相对正常的结果,但是使用xunsearch后,在多重排序后,结果不正确
...] tokenizer = full [subject] type = title [content] type = body #导入 php util/Indexer.php --rebuild --source=mysql://数据库用户名:数据库密码@数据库地址/数据库名 --sql="select t.tid as tid, t.fid as fid, t.author as author, t.authorid as authorid, t.postdate as postdate, t.s...
...以确认是bug,我有一个同事独立安装xapian和scws,利用lib/xs.php的内容,作了修改,得出的值明显是准确的.也就是xapian本身可以得出相对正常的结果,但是使用xunsearch后,在多重排序后,结果不正确 [/quote] 是阿,这个问题很验证,能否...