搜索

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

31.XSSearch::getAllSynonyms

...$page = $limit > 0 ? pack('II', intval($offset), intval($limit)) : ''; $cmd = array('cmd' => XS_CMD_SEARCH_GET_SYNONYMS, 'buf1' => $page); $cmd['arg1'] = $stemmed == true ? 1 : 0; $res = $this->execCommand($cmd, XS_CMD_OK_RESULT_SYNONYMS); $ret = array(); if (!empty($res->buf)) { ...

32.XSSearch::getCorrectedQuery

... } $buf = XS::convert($query, 'UTF-8', $this->_charset); $cmd = array('cmd' => XS_CMD_QUERY_GET_CORRECTED, 'buf' => $buf); $res = $this->execCommand($cmd, XS_CMD_OK_QUERY_CORRECTED); if ($res->buf !== '') { $ret = explode("\n", XS::convert($res->buf, $this->...

33.XSIndex::del

...is->xs->getFieldId() : $this->xs->getField($field); // get commands $cmds = array(); $terms = is_array($term) ? array_unique($term) : array($term); $terms = XS::convert($terms, 'UTF-8', $this->xs->getDefaultCharset()); foreach ($terms as $term) { $cmds[] = new XSCommand(XS_CMD_...

34.XSSearch::getDbTotal

...hp/lib/XSSearch.class.php#L659 (显示) public function getDbTotal(){ $cmd = new XSCommand(XS_CMD_SEARCH_DB_TOTAL); $res = $this->execCommand($cmd, XS_CMD_OK_DB_TOTAL); $tmp = unpack('Itotal', $res->buf); return $tmp['total'];} 获取搜索数据库内的数据总量

35.XSTokenizerScws::getResult

...lt($text){ $words = array(); $text = $this->applySetting($text); $cmd = new XSCommand(XS_CMD_SEARCH_SCWS_GET, XS_CMD_SCWS_GET_RESULT, 0, $text); $res = self::$_server->execCommand($cmd, XS_CMD_OK_SCWS_RESULT); while ($res->buf !== '') { $tmp = unpack('Ioff/a4attr/a*word', $res-...

36.我很愤怒之Unexpected respond in search {CMD:129, ARG:514}

更新时间:2013-03-07 09:03 t By 277850318@qq.com

... 那个不稳定啊。。。 我在百度搜Unexpected respond in search {CMD:129, ARG:514} 搜到的结果相当多 可见用xunseaerch的网站很多 更可见搜索进程死的问题仍没得到解决 别说我不是用最新的版本 我已是了 最新版本的好处是可以restart,每次重...

37.XSIndex::setScwsMulti

...{ $level = intval($level); if ($level >= 0 && $level < 16) { $cmd = array('cmd' => XS_CMD_SEARCH_SCWS_SET, 'arg1' => XS_CMD_SCWS_SET_MULTI, 'arg2' => $level); $this->execCommand($cmd); } return $this;} 设置当前索引库的分词复合等级 复合等级是 scws 分...

38.XSSearch::setScwsMulti

...{ $level = intval($level); if ($level >= 0 && $level < 16) { $cmd = array('cmd' => XS_CMD_SEARCH_SCWS_SET, 'arg1' => XS_CMD_SCWS_SET_MULTI, 'arg2' => $level); $this->execCommand($cmd); } return $this;} 设置当前搜索语句的分词复合等级 复合等级是 scws ...

39.RE: 我很愤怒之Unexpected respond in search {CMD:129, ARG:514}

发布时间:2013-03-08 14:03 t By hightman

ARG:514 意思是搜索线程被取消,原因有如下可能: 1. 搜索超时,被控制线程强制 cancel 了 2. 搜索进程意外退出,所有子线程强制 cancel(通常是 xapian 或系统内部出现内存不足等异常引起) 最好能够可以跟踪重现。 将来新版会考...

40.XSIndex::flushIndex

...示) public function flushIndex(){ try { $this->execCommand(XS_CMD_INDEX_COMMIT, XS_CMD_OK_DB_COMMITED); } catch (XSException $e) { if ($e->getCode() === XS_CMD_ERR_BUSY || $e->getCode() === XS_CMD_ERR_RUNNING) { return false; } throw $e; } return ...

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