..., int yes); void scws_set_duality(scws_t s, int yes); diff -ur scws-1.2.1/phpext/php_scws.c scws-1.2.1.changed/phpext/php_scws.c --- scws-1.2.1/phpext/php_scws.c 2013-01-07 14:43:56.000000000 +0800 +++ scws-1.2.1.changed/phpext/php_scws.c 2013-07-03 10:38:55.288772732 +0800 @@ -111,6 +111,7 @@ PH...
具体安装日志见:http://bbs.xunsearch.com/showthread.php?tid=765 我在一个vps(1G内存)上建立了两个项目,对应两个网站,大家可以测试下。效果蛮好的(已经抛弃了hdwiki自带的tag搜索和全文搜索,仅保留了它的title搜索)! a, 中文P...
...,设置要返回的词数量上限,默认为 6,最大值为 20 ~~~ [php] $search->setQuery('西湖'); // 获取前 6 个和默认搜索语句 "西湖" 相关搜索词 $words = $search->getRelatedQuery(); // 获取 10 个和 "杭州" 相关的搜索词 $words = $search->getRelatedQuery('杭...
..._WIN64 编译环境为VS2010完全安装,Windows8 x64,复制Release_PHP54 win32到Release_PHP54 x64. 请高手帮助一下看看。或者直接给我发一个PHP5.4的64位dll,会搞死人。多谢。
...(总量),可选值还有:`lastnum`(上周) 和 `currnum`(本周) ~~~ [php] $words = $search->getHotQuery(); // 获取前 6 个总热门搜索词 $words = $search->getHotQuery(10, 'lastnum'); // 获取前 10 个上周热门词 ~~~ 有关热门搜索的深度挖掘 -------------------- 搜索...
... 每个词汇是包含 [times:次数,attr:词性,word:词] 源码: sdk/php/lib/XSTokenizer.class.php#L361 (显示) public function getTops($text, $limit = 10, $xattr = ''){ $words = array(); $text = $this->applySetting($text); $cmd = new XSCommand(XS_CMD_SEARCH_SCWS_GET, XS_CMD_SCWS_GE...
[quote='hightman' pid='10' dateline='1315984026'] 已经查明原因了。php5.2.0以前__toString 只有在独立的 echo,print语句才有效,所以出现大量错误,经过仔细考量,决定将 xunsearch 的最底PHP要求提升到 php5.2.0 [/quote] 好的,谢谢回复,我重装...
环境:ubuntu 13.10 x64, php 5.5 按照官方文档安装和下载词典,用php扩展测试,无法对中文分词,把词典权限设置为777后依旧不行。 还有其他什么要注意的? 例如: [quote]早春装新款2014大码宽松长款韩版蕾丝衫雪纺衫打底衬衫[/quote...
贴的代码显示为双重htmlspecial_encode后的结果 如 http://www.xunsearch.com/doc/php/guide/index.overview#c10
[attachment=12][php] project.name = search_brand server.index = 192.168.1.124:8383 server.search =192.168.1.124:8384 [brandId] type = id [brand] type = title index =self [/php] 而且搜索骨架会有 [php]大约有 0 项符合查询结果, 库内数据总量为 10,735 项。 (搜...