... - Missing value of primarky key (FIELD:pid) #0 /usr/local/xunsearch/sdk/php/util/Indexer.php(195): XSIndex->update(Object(XSDocument)) sql语句: sql="select c.contentid,c.status,b.contentid from phpcms_content c,phpcms_c_news b where c.contentid=b.contentid and c.status=99" 配置...
...atRange('@geodist', 0.0, $circle); $result = $cl->Query('', 'explorer');[/php] xunsearch如何才能使用呢?或者xunsearch支持geodist搜素么?
...-8 环境,如果您使用的是 GBK > 编码环境,请在运行所有 `php` 脚本时加入 `-c gbk` 参数。 查看项目配置文件 -------------- 每一个 `xunsearch` 搜索项目都有一个独立的 INI 配置文件。DEMO 项目的配置文件 位于 `$prefix/sdk/php/app/demo.ini` ...
...个汉字为单位。 最后贴出我的代码给有需要的人: [php] class XSTokenizerUnary implements XSTokenizer { private $length = 1; // 默认切分长度 public function __construct($arg = null){ if ($arg !== null && $arg !== '') $this->length = $arg; } public fun...
...eturn} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L253 (显示) public function addExdata($data, $check_file = true){ if (strlen($data) < 255 && $check_file && file_exists($data) && ($data = file_get_contents($data)) === false) { ...
... 但使用xunsearch搜索出来的结果 http://www.5ucom.com/so/index.php?q=质量管理+报告&f=subject 使用百度搜索出来的结果 http://www.baidu.com/s?q1=%D6%CA%C1%BF%B9%DC%C0%ED+%B1%A8%B8%E6&q2=&q3=&q4=&rn=10&lm=0&ct=0&ft=&q5=&q6=www.5ucom.com&tn=baiduadv 结果比较,...
[php]root@localhost ~]# Indexer.php --source=mysql://xxx@localhost/phpcms --sql="SELECT a.id,a.title,a.url,a.catid,FROM_UNIXTIME (inputtime,'%Y%m%d' ) as inputtime,ad.content,c.catname,c.url as caturl FROM v9_dede_article AS a LEFT JOIN v9_dede_article_data as ad on a.id=ad.id LEFT JOIN v9_categ...
...操作对像,参见[如何开始使用索引?](index.overview#ch1) ~~~ [php] // 给 "搜索" 增加 "检索" "查找" 两个同义词 $index->addSynonym('搜索', '检索'); $index->addSynonym('搜索', '查找'); // 给 "Hello world" 增加同义词 "你好" $index->addSynonym('hello world', '...
...饰关键词链接到了 [url]http://www.adminlink.net.cn/websearch/search.php?q=%E6%9C%8D%E9%A5%B0[/url] 页面。 整个的搜索页在 [url]http://www.adminlink.net.cn/websearch/search.php[/url] 库内数据总量为 151,105 项。 (搜索耗时:0.0157秒)速度确实很不错。十几万...
...于 Xapian、scws 的全文检索解决方案 *[discuz]: Discuz - 采用 PHP/MySQL 开发的 web 论坛软件 $Id$