...项目 project.name = product project.default_charset = utf-8 ;server.index = 8383 ;server.search = 8384 [id] type = id [p_id] [p_name] type = title [p_bn_id 然后用 # 导入 MySQL 数据库的 dbname.tbl_post 表到 demo 项目中,并且平滑重建 util/Indexer.php -...
...ep xs root 21853 0.0 0.0 2184 652 ? S Sep17 0:04 xs-indexd: server root 21856 0.0 0.0 39536 1680 ? S Sep17 0:00 xs-searchd: master root 21857 0.0 0.0 101136 3120 ? Sl Sep17 0:00 xs-searchd: worker[1] root 21858 0.0 0.0 101136 310...
...me = pub project.default_charset = utf-8 ;服务端用默认值 ;server.index = 8383 ;server.search = 8384 [did] type = id [title] type = title [tag] index = self [summary] index = both [content] type = body [/php] 这个是用命令行随便搜的几个,都是0.5+秒...
...就退出了。:@ 代码参考: [php] // 宣布开始重建索引 $index->beginRebuild(); // 然后在此开始添加数据 ... $index->add($doc); ... // 告诉服务器重建完比 $index->endRebuild();[/php] 我的代码应该没有问题, 目前我使用了先清空,再...
...xecCommand(Array, 250) #1 /home/www/xunsearch/sdk/php/lib/XS.php(1246): XSIndex->addExdata('????????1??????...', false) #2 /home/www/xunsearch/sdk/php/lib/XS.php(1102): XSIndex->appendBuffer('????????37225??...') #3 /home/www/xunsearch/sdk/php/util/Indexer.php(237): XSIndex->update(Object(XSDocum...
...ame = go project.default_charset = utf-8 ;服务端用默认值 ;server.index = 8383 ;server.search = 8384 [did] type = id [title] type = title [tag] index = self [content] type = body[/code] 其中did为hdwiki每个词条唯一的编号(这个与url对应) title为词条...
...下终端(ssh中执行的)语句:/usr/local/xunsearch/sdk/php/util/Indexer.php --rebuild --source=mysql://root:111111@localhost/dbo --sql="select * from user" --project=sokc,怎么写php脚本(类似后台的东西)达到同样的建立索引效果呢?
... cd $prefix bin/xs-ctl.sh restart 显示: INFO: stopping server[xs-indexd] (BIND:127.0.0.1:8383) .... [OK] INFO: re-starting server[xs-indexd] ... (BIND:127.0.0.1:8383) INFO: stopping server[xs-searchd] (BIND:127.0.0.1:8384) .... [OK] INFO: re-starting server[xs-searchd] ... (BIND:127.0.0...
... cd $prefix bin/xs-ctl.sh restart 显示: INFO: stopping server[xs-indexd] (BIND:127.0.0.1:8383) .... [OK] INFO: re-starting server[xs-indexd] ... (BIND:127.0.0.1:8383) INFO: stopping server[xs-searchd] (BIND:127.0.0.1:8384) .... [OK] INFO: re-starting server[xs-searchd] ... (BIND:127.0.0...
... etc include lib sdk share tmp [root@sm xunsearch]# ./sdk/php/util/ Indexer.php Quest.php SearchSkel.php XSDataSource.class.php IniWizzard.php RequiredCheck.php skel/ XSUtil.class.php [root@sm xunsearch]# ./sdk/ph...