...若不存在或未曾登记过则返回空数组 源码: sdk/php/lib/XSSearch.class.php#L427 (显示) public function getFacets($field = null){ if ($field === null) { return $this->_facets; } return isset($this->_facets[$field]) ? $this->_facets[$field] : array();} 读取最...
addSearchLog() 方法 (自版本 v1.1.1 起可用) public void addSearchLog(string $query, int $wdf=1) $query string 需要记录的数据 $wdf int 需要记录的次数, 默认为 1 源码: sdk/php/lib/XSSearch.class.php#L831 (显示) public function addSearchLog($query,...
...tr){ $text = $this->applySetting($text); $cmd = new XSCommand(XS_CMD_SEARCH_SCWS_GET, XS_CMD_SCWS_HAS_WORD, 0, $text, $xattr); $res = self::$_server->execCommand($cmd, XS_CMD_OK_INFO); return $res->buf === 'OK';} 判断是否包含指定词性的词
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 [...
setDocOrder() 方法 public XSSearch setDocOrder(bool $asc=false) $asc bool 是否为正序排列, 即从先到后, 默认为反序 {return} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L317 (显示) public function setDocOrder($...
...roject.default_charset = UTF-8 server.index = 192.168.171.22:8383 server.search = 192.168.171.22:8384 [pid] type = id [itemid] [title] index = mixed [content] type=body cutlen=600 [categoryid] index = self [category] index=none [searchcount] index=none [createtime] ...
setDb() 方法 public XSSearch setDb(string $name) $name string {return} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L475 (显示) public function setDb($name){ $name = strval($name); $this->execCommand(array('cmd' => XS_...
...de) & self::MULTI_MASK; $this->_setting['multi'] = new XSCommand(XS_CMD_SEARCH_SCWS_SET, XS_CMD_SCWS_SET_MULTI, $mode); return $this;} 设置复合分词选项
见中文http://www.xunsearch.com/对应的英文 which offered a search over around [color=#FF0000][size=xx-large][u]500 million[/u][/size][/color] web pages 发现似乎文档也是错的:D
...分面搜索结果(某一顶级分类)进一步过滤搜索 所以建议search对象能否增加一个像sphinx api过滤接口: Prototype: function SetFilter ( $attribute, $values, $exclude=false ) 接口参考:http://sphinxsearch.com/docs/2.0.3/api-func-setfilter.html xunsearch使用比其...