搜索

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

1.XSSearch::getExpandedQuery

...' => $limit, 'buf' => $buf); $res = $this->execCommand($cmd, XS_CMD_OK_RESULT_BEGIN); // echo "Raw Query: " . $res->buf . "\n"; // get result documents while (true) { $res = $this->getRespond(); if ($res->cmd == XS_CMD_SEARCH_RESULT_FIELD) { ...

2.XSTokenizerScws::hasWord

...ol 文本中是否包含指定词性的词汇 源码: sdk/php/lib/XSTokenizer.class.php#L382 (显示) public function hasWord($text, $xattr){ $text = $this->applySetting($text); $cmd = new XSCommand(XS_CMD_SEARCH_SCWS_GET, XS_CMD_SCWS_HAS_WORD, 0, $text, $xattr); $res = self::$_serve...

3.XSIndex

...> XS_CMD_INDEX_EXDATA, 'buf' => $data); $this->execCommand($cmd, XS_CMD_OK_RQST_FINISHED); return $this;} 批量提交索引命令封包数据 把多个命令封包内容连续保存为文件或变量, 然后一次性提交以减少网络开销提升性能 addServer() 方法 publ...

4.XSSearch::search

...his->_defaultOp, $query, $page); $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(); // ge...

5.XSIndex::del

... } elseif (count($cmds) == 1) { $this->execCommand($cmds[0], XS_CMD_OK_RQST_FINISHED); } else { $cmd = array('cmd' => XS_CMD_INDEX_EXDATA, 'buf' => implode('', $cmds)); $this->execCommand($cmd, XS_CMD_OK_RQST_FINISHED); } return $this;} 删除索引中的数据 $in...

6.XSServer::execCommand

...出错信息 $res_cmd int 要求的响应指令, 默认为 XS_CMD_OK 即要求结果必须正确. {return} mixed 若无需要检测结果则返回 true, 其它返回响应的 XSCommand 对象 源码: sdk/php/lib/XSServer.class.php#L279 (显示) public function execCommand($cmd, ...

7.XSIndex::getCustomDict

...tCustomDict(){ $res = $this->execCommand(XS_CMD_INDEX_USER_DICT, XS_CMD_OK_INFO); return $res->buf;} 获取自定义词典内容

8.XSIndex::clean

...blic function clean(){ $this->execCommand(XS_CMD_INDEX_CLEAN_DB, XS_CMD_OK_DB_CLEAN); return $this;} 完全清空索引数据 如果当前数据库处于重建过程中将禁止清空

9.XSIndex::setCustomDict

..._DICT, 'arg1' => 1, 'buf' => $content); $this->execCommand($cmd, XS_CMD_OK_DICT_SAVED);} 设置自定义词典内容

10.XSServer::setTimeout

...cmd' => XS_CMD_TIMEOUT, 'arg' => $sec); $this->execCommand($cmd, XS_CMD_OK_TIMEOUT_SET);} 设置服务端超时秒数

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