...充数据 cd /usr/local/xunsearch/sdk/php util/Indexer.php --rebuild --source=mysql://数据库用户名字:数据库密码@localhost/数据库名字 --sql="select did, tag, title, content from wiki_doc" --filter=debug --project=go >log.txt 说明:a,使用>log.txt是因为我的ssh显示乱...
...,不像是String的问题: [root@localhost php]# util/Indexer.php --source=csv --clean demo PHP Notice: Uninitialized string offset: 0 in /www/xunsearch/run/sdk/php/lib/XS.php on line 367 PHP Notice: Uninitialized string offset: 0 in /www/xunsearch/run/sdk/php/lib/XS.php on line 367 PHP ...
...e = 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.subject as subject, tm.content as ...
XSDataSource All Packages | 属性 | 方法(函数) 包 XS.utilf 继承关系 abstract class XSDataSource 子类 XSCsvDataSource, XSDatabaseDataSource, XSJsonDataSource 版本 1.0.0 源代码 sdk/php/util/XSDataSource.class.php 索引数据源抽象基类 ...
...exer.php Quest.php SearchSkel.php XSDataSource.class.php IniWizzard.php RequiredCheck.php skel/ XSUtil.class.php [root@sm xunsearch]# ./sdk/php/util/RequiredCheck.php Xunsearch PHP-SDK 运行需求检查 ...
... 现在来创建索引 /usr/local/xunsearch/sdk/php/util/Indexer.php --source=mysql://xxx --sql="SELECT p.ID,UNIX_TIMESTAMP(p.post_date) AS post_date_sec,DATE_FORMAT(post_date,'%Y%m%d') AS post_time,p.post_title,p.post_content,p.post_content AS post_content_full,u.user_login AS author,t.name AS ...