xunsearch搜索的时候右边出现的几种分类是怎么实现的? [name] //分类名 index = self [cid] //分类id type = numeric index = none 在搜索页面 $search->setFacets('name'); //得到分面搜索数据 // get the result $search_begin = microtime(true); $docs = $sea...
... memset((void *)((char *)buf + len), 0, 1); } /* recursive to search the matched record */ --- 52,59 ---- { memcpy(buf, x->fmap + off, len); } ! /* hightman.101230: fixed overflow, thanks to hovea on bbs */ ! //memset((void *)((char *)...
search() 方法 public XSDocument[] search(string $query=NULL, boolean $saveHighlight=true) $query string 搜索语句, 若传入 null 使用默认语句, 最大长度为 80 字节 $saveHighlight boolean 是否存储查询词用于高亮处理, 默认为 true {return} XS...
...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...
...上已经安装成功了,并且用生成骨架的运行了下,生成的search.php可以用。而在vps上安装成功(用的全是默认路径,即:/usr/local/xunsearch,导入数据成功,在命令行下也能够搜索(虽然是乱码)。但是生成的骨架放在www/public_html下...
调用 getExpandedQuery方法出现异常 Unexpected respond in search {CMD:129, ARG:515} 某些词语(极少比列),不会出现异常。 重新向log_db导入词汇,不能消除异常;删除log_db,重新导入词汇,生成新log_db后,异常会立即消除,但一段时间...
...return} array 返回搜索词组成的数组 源码: sdk/php/lib/XSSearch.class.php#L755 (显示) public function getExpandedQuery($query, $limit = 10){ $ret = array(); $limit = max(1, min(20, intval($limit))); try { $buf = XS::convert($query, 'UTF-8', $this->_charset); ...
[root@sm ~]# cd /usr/local/xunsearch/ [root@sm xunsearch]# ls bin data 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/...
... project.name = discuz project.charset = GBK server.index = 8383 server.search = 8384 [pid] type = id [fid] index = self tokenizer = full [tid] [first] index = self tokenizer = full [author] index = both [authorid] [subject] type = title [message] type = body [d...
....name = test project.default_charset = utf-8 server.index = 8383 server.search = 8384 当我执行 util/Indexer.php --source=csv --clean test 时候提示下面错误 求解 [XSException] ../../../../usr/local/xunsearch/sdk/php/lib/XS.php(2448): Failed to recv the data from server completel...