...需要捆绑的 xs 对象 源码: sdk/php/lib/XSServer.class.php#L143 (显示) public function __construct($conn = null, $xs = null){ $this->xs = $xs; if ($conn !== null) { $this->open($conn); }} 构造函数, 打开连接 __destruct() 方法 public void __destruct...
...份 (字段为 year),我们需要在搜索结果中按年份、版块显示匹配的文章数。 那么在构建搜索语句时使用 [XSSearch::setFacets] 方法来指定需要分面的字段, 该方法接受两个参数,第一参数为要分面的字段名称(多个字段请用数组...
...身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L492 (显示) public function addDb($name){ $name = strval($name); $this->execCommand(array('cmd' => XS_CMD_SEARCH_ADD_DB, 'buf' => $name)); $this->_curDbs[] = $name; return $this;} 添加搜索的数据库名, 支...
...搜索结果文档列表 源码: sdk/php/lib/XSSearch.class.php#L572 (显示) public function search($query = null, $saveHighlight = true){ if ($this->_curDb !== self::LOG_DB && $saveHighlight) { $this->_highlight = $query; } $query = $query === null ? '' : $this->preQueryString...
...,彻底解决进程卡死 - 修正若干已知的小 BUG 并改进一些显示效果 - 搜索日志记录时排除具有明显特征的搜索引擎爬虫 版本 1.4.0 (2013-1-22) ---------------------- - 升级整合最新的 xapian-1.2.13、scws-1.2.1 - 新增支持项目自定义词库,[参...