oh 谢谢!我试试[hr] require_once '/mnt/search/sdk/php/lib/XS.php'; $xs = new XS('test'); $skey = $_GET["skey"]; $search = $xs->search; $docs = $search->setQuery($skey."type:1")->search(); print_r($docs); 已经 [type] type = string index = self 了 但是搜索不到什么 改成...
...art Starting XAMPP for Linux 1.7.7... XAMPP: Starting Apache with SSL (and PHP5)... XAMPP: Starting MySQL... XAMPP: Starting ProFTPD... XAMPP for Linux started. [root@sm xunsearch]# ./bin/xs-ctl.sh restart INFO: stopping server[xs-indexd] (BIND:127.0.0.1:8383) .... [OK] INFO: re-starting server[xs-i...
...] tokenizer = full [subject] type = 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.s...
...正在追踪中,请大家耐心等待。 有用户反映偶尔通过php调用会出现502之类的错误。 我写过一段这样bash shell 脚本,大概原理是: 每隔几秒去请求搜索页面,据返还结果确定是否需要重启,重启后再查检查, 如果连续N次都...
1.安装xunsearch,参见文档:http://www.xunsearch.com/doc/php/guide/start.installation,这里不必多说 2.启动xunsearch $prefix/bin/xs-ctl.sh start,即可启动xunsearch 3.构建项目:首先参考文档:http://www.xunsearch.com/doc/php/guide/ini.guide 文档中说明了项目...