...据 | | XML 扩展 | OK | util.Indexer | 用于读取导入 XML 格式的数据 | | MySQL 扩展 | WARNING | util.Indexer | 用于读取导入 MySQL 的数据库 | | SQLite 扩 | WARNING | util.Indexer | 用于读取导入 SQLite 的数据...
...e = id [p_id] [p_name] type = title [p_bn_id 然后用 # 导入 MySQL 数据库的 dbname.tbl_post 表到 demo 项目中,并且平滑重建 util/Indexer.php --rebuild --source=mysql://root:pass@localhost/dbname --sql="SELECT * FROM tbl_post" --project=demo 建立索引 [ph...
... type = numeric index = self [category] index = self [/php] 索引导入 /usr/local/xunsearch/sdk/php/util/Indexer.php --source=xxxxxx --sql="SELECT p.ID,UNIX_TIMESTAMP(p.post_date) AS post_date,p.post_title,p.post_content,u.user_login AS author,t.name AS category FROM wp_posts AS p LEFT J...
...ixed $type, $arg) $type mixed 对象参数, 常为 SQL 语句或要导入的文件路径 $arg 源码: sdk/php/util/XSDataSource.class.php#L30 (显示) public function __construct($type, $arg){ $this->type = $type; $this->arg = $arg; $this->inCli = php_sapi_name() === ...
...192.168.0.250) start 如果开启iptables,要放行8383,8384 3 配置和导入原有数据 在sdk的app目录里 vi 项目名.ini project.name = 项目名 project.default_charset = UTF-8 server.index = 192.168.0.250:8383 server.search = 192.168.0.250:8384 [tid] type = id [fid] index = self toke...