setFacets() 方法 (自版本 v1.1.0 起可用) public XSSearch setFacets(mixed $field, bool $exact=false) $field mixed 要进行分组统计的字段或字段组成的数组, 最多同时支持 8 个 $exact bool 是否要求绝对精确搜索, 这会造成较大的系统开...
...t.name = study project.default_charset = utf8 server.index =8383 server.search =8384 [user_id] type = id [username] index = self tokenizer = full [password] index = both [email] index = both 后来自己又写了个php页面打印结果是一个空数组
报错:[XSException] ThinkPHP/Extend/Vendor/sdk/php/lib/XS.php(2087): Task is canceled due to timeout/error(S#514) 日志: 2012-12-25 10:19:08 worker1[11340] [sock:7] task canceld, run the cleanup (ZARG:0x7f6c775fdbf0) 2012-12-25 10:19:08 worker1[11340] [sock:7] quit, result error (CODE:514) ...
...(2092): Unknown Internal Error(S#600) XS.php(1550): Unexpected respond in search {CMD:129, ARG:600} quit, IO error (ERROR:Broken pipe): XS.php(2165): Failed to recv the data from server completely (SIZE:0/8, REASON:timeout) quit, IO timeout (TIMEOUT:5): XS.php(2165): Failed to recv the ...
...327 (显示) public function getVersion(){ $cmd = new XSCommand(XS_CMD_SEARCH_SCWS_GET, XS_CMD_SCWS_GET_VERSION); $res = self::$_server->execCommand($cmd, XS_CMD_OK_INFO); return $res->buf;} 获取 scws 版本号
...return} array 返回搜索词组成的数组 源码: sdk/php/lib/XSSearch.class.php#L707 (显示) public function getRelatedQuery($query = null, $limit = 6){ $ret = array(); $limit = max(1, min(20, intval($limit))); // Simple to disable query with field filter if ($query === nul...
索引概述 什么是索引? ---------- 索引在 `Xunsearch` 中泛指用于检索的数据库文件总称。每一次检索数据均为访问和读取 索引文件,每一次更新数据则是对索引文件的修改。 `Xunsearch` 每个搜索项目的索引数据是分开单独存...
Uncaught [XSException] ../../xunsearch/sdk/php/lib/XS.php(1970): The revision being read has been discarded - you should call Xapian::Database::reopen() and retry the operation(S#515) thrown in /usr/local/xunsearch/sdk/php/lib/XS.php on line 1970 又报另外一个错误[hr] Fatal error: Uncaught [...
... (显示) public function getScwsMulti(){ $cmd = array('cmd' => XS_CMD_SEARCH_SCWS_GET, 'arg1' => XS_CMD_SCWS_GET_MULTI); $res = $this->execCommand($cmd, XS_CMD_OK_INFO); return intval($res->buf);} 获取当前索引库的分词复合等级
第一个参数是网址:比如, http://www.xunsearch.com/site/search?q=demo 老个参数是这个页面应该包含的文字,比如: RE 第三个参数是 xs-ctl.sh的位置 第是个参数是重启记录比如 /var/log/xu_xs.log