搜索

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

51.关于搜索分页bug

发布时间:2012-03-27 10:03 t By ttgive

...dtime',false); $docs=$search->addRange('addtime',$from,null)->search(); $count=$search->getLastCount(); 在相关时间区间里面搜索再以时间来排序,这种query可能造成结果总数不准确 解决方案: 其实解决方案很容易,如下代码 $docs=$search->addRange('add...

52.XSJsonDataSource

...st(); } $item = json_decode($line, true); if (!is_array($item) || count($item) === 0) { switch (json_last_error()) { case JSON_ERROR_DEPTH: $error = ' - Maximum stack depth exceeded'; break; case JSON_ERROR_CTRL_CHAR: ...

53.区间搜索(addRange)返回总数误差很大

发布时间:2013-07-22 16:07 t By hung

...e('use_year', $from , $to); $docs = $search->search(); print_r($search->count()); [/code] 不管怎么设置$from跟$to,显示总数都基本是一样,实际总数只有打印一半甚至更少,误差很大。 尝试修改过use_yeartype为numeric,结果也是一...

54.XSSearch::search

...res = $this->execCommand($cmd, XS_CMD_OK_RESULT_BEGIN); $tmp = unpack('Icount', $res->buf); $this->_lastCount = $tmp['count']; // load vno map to name of fields $ret = $this->_facets = array(); $vnoes = $this->xs->getScheme()->getVnoMap(); // get result documents while (true) { ...

55.RE: 搜索全文时较慢,在0.5+秒,甚至1.0+秒【900M数据库】

发布时间:2013-07-05 17:07 t By chinapubmed

[php][root@west123110 tmp]# dd bs=64k count=4k if=/dev/zero of=test oflag=dsync 记录了4096+0 读入 记录了4096+0 写出 268435456字节(268 MB)已复制,24.6265 秒,10.9 MB/秒 [/php] 经hightman老大测试,似乎是硬盘读取速度太慢了。 好吧,看来要换个...

56.XSSearch::terms

... array(); $tmps = explode(' ', $res->buf); for ($i = 0; $i < count($tmps); $i++) { if ($tmps[$i] === '' || strpos($tmps[$i], ':') !== false) { continue; } $ret[] = $tmps[$i]; } if ($query === '') { $this->_terms =...

57.XSDataSource

...c function getData(){ if ($this->dataPos === null || $this->dataPos === count($this->dataList)) { $this->dataPos = 0; $this->dataList = $this->getDataList(); if (!is_array($this->dataList) || count($this->dataList) === 0) { $this->deinit(); $this->dataLi...

58.XSSearch

...arch hotQuery array 获取热门搜索词列表 XSSearch lastCount int 获取最近那次搜索匹配总数估值 XSSearch project string 获取当前项目名称 XSServer query string 获取解析后搜索语句 XSSearch relatedQuery array 获...

59.SQL 导入错误,请问管理同学 sql 导入不支持 DATE_FORMAT(a.inputtime , '%Y%m%d' ) 函数??

更新时间:2012-03-19 23:03 t By a7262619

...c' at line 1 #0 XSDataSource.class.php(454): XSDatabasePDO->query('SELECT COUNT(*)...') #1 XSDataSource.class.php(213): XSDatabase->query1('SELECT COUNT(*)...') #2 XSDataSource.class.php(33): XSDatabaseDataSource->init() #3 XSDataSource.class.php(48): XSDataSource->__construct('mysql://xxx', 'SE...

60.XSSearch::getRelatedQuery

... continue; } $ret[] = $body; if (count($ret) == $limit) { break; } } } catch (XSException $e) { if ($e->getCode() != XS_CMD_ERR_XAPIAN) { throw $e; } } $this->restoreDb(); $this->xs->resto...

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