搜索

大约有 300 项符合查询结果, 库内数据总量为 3,513 项。 (搜索耗时:0.0049秒)

161.XSSearch::terms

...return} array 可用于高亮显示的词条列表 源码: sdk/php/lib/XSSearch.class.php#L515 (显示) public function terms($query = null, $convert = true){ $query = $query === null ? '' : $this->preQueryString($query); if ($query === '' && $this->_terms !== null) { $ret = $t...

162.为什么我这样写查不出结果集?

发布时间:2013-03-23 08:03 t By gaochunmeng

require_once './lib/XS.php'; $xs = new XS('demo'); $search = $xs->search; $docs = $search->search('cat_ids:108 a'); ---------------------------------------------------------- project.name = demo project.default_charset = utf-8 server.index = 8383 server.search = 8384 [goods...

163.为什么我这样写查不出结果集?

发布时间:2013-03-23 08:03 t By gaochunmeng

require_once './lib/XS.php'; $xs = new XS('demo'); $search = $xs->search; $docs = $search->search('cat_ids:108 a'); ---------------------------------------------------------- project.name = demo project.default_charset = utf-8 server.index = 8383 server.search = 8384 [goods...

164.XSSearch::getHotQuery

...以搜索词为键, 搜索指数为值的关联数组 源码: sdk/php/lib/XSSearch.class.php#L673 (显示) public function getHotQuery($limit = 6, $type = 'total'){ $ret = array(); $limit = max(1, min(50, intval($limit))); // query from log_db $this->xs->setScheme(XSFieldScheme::log...

165.RE: xunsearch安装完成后运行示例错误

发布时间:2011-09-14 11:09 t By hightman

...如果不方便重新安装建议先强制忽略 notice 错误,可以在 lib/XS.php 开头加一句 error_reporting(E_ALL ^ E_NOTICE); 第二,你的 PHP 是 5.1.6 版本确实比较早了,我们只测试了 5.2 5.3, 所以可能存在少量不兼容,建议有可能升到 5.2+,因为从...

166.XSSearch::getQuery

... {return} string 返回解析后的搜索语句 源码: sdk/php/lib/XSSearch.class.php#L204 (显示) public function getQuery($query = null){ $query = $query === null ? '' : $this->preQueryString($query); $cmd = new XSCommand(XS_CMD_QUERY_GET_STRING, 0, $this->_defaultOp, $query); ...

167.XSSearch::setCollapse

...} XSSearch 返回对象本身以支持串接操作 源码: sdk/php/lib/XSSearch.class.php#L332 (显示) public function setCollapse($field, $num = 1){ $vno = $field === null ? XSFieldScheme::MIXED_VNO : $this->xs->getField($field, true)->vno; $max = min(255, intval($num)); $cmd = n...

168.XSServer::execCommand

...则返回 true, 其它返回响应的 XSCommand 对象 源码: sdk/php/lib/XSServer.class.php#L279 (显示) public function execCommand($cmd, $res_arg = XS_CMD_NONE, $res_cmd = XS_CMD_OK){ // create command object if (!$cmd instanceof XSCommand) { $cmd = new XSCommand($cmd); } ...

169.关于缓存使用xcache的问题

发布时间:2012-03-05 14:03 t By lxe524

...通过命令行建索引使用xcache,会抛异常 [XSErrorException] ../lib/XS.php(431): xcache_get(): xcache.var_size is either 0 or too small to enable var data caching(2) #0 [internal function]: xs_error_handler(2, 'xcache_get(): x...', '/usr/local/xuns...', 431, Array) 如果只是缓存...

170.XSServer::__destruct

__destruct() 方法 public void __destruct() 源码: sdk/php/lib/XSServer.class.php#L154 (显示) public function __destruct(){ $this->xs = null; $this->close();} 析构函数, 关闭连接

  • 时间不限
  • 按相关性排序