搜索

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

21.XSIndex

...x project string 获取当前项目名称 XSServer respond XSCommand 从服务器读取响应指令 XSServer scwsMulti int 获取当前索引库的分词复合等级 XSIndex socket mixed 获取连接资源描述符 XSServer xs XS 服务端关联的 XS ...

22.XSServer.respond

respond 属性 只读 public XSCommand getRespond() 从服务器读取响应指令

23.API里包含未定义变量

发布时间:2011-11-15 20:11 t By dancebear

zendstudio下提示1051行包含未定义变量即$arg1未定义 $cmds[] = new XSCommand(CMD_DOC_INDEX, $arg1, $field->vno, $text);

24.XSTokenizerScws::getVersion

...nizer.class.php#L327 (显示) public function getVersion(){ $cmd = new XSCommand(XS_CMD_SEARCH_SCWS_GET, XS_CMD_SCWS_GET_VERSION); $res = self::$_server->execCommand($cmd, XS_CMD_OK_INFO); return $res->buf;} 获取 scws 版本号

25.XSSearch::getDbTotal

...earch.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'];} 获取搜索数据库内的数据总量

26.XSTokenizerScws::setIgnore

...public function setIgnore($yes = true){ $this->_setting['ignore'] = new XSCommand(XS_CMD_SEARCH_SCWS_SET, XS_CMD_SCWS_SET_IGNORE, $yes === false ? 0 : 1); return $this;} 设置忽略标点符号

27.XSTokenizerScws::setDuality

...blic function setDuality($yes = true){ $this->_setting['duality'] = new XSCommand(XS_CMD_SEARCH_SCWS_SET, XS_CMD_SCWS_SET_DUALITY, $yes === false ? 0 : 1); return $this;} 设置散字二元组合

28.XSSearch::setSynonymScale

..._SYN_SCALE; $arg2 = max(0, (intval($value * 100) & 255)); $cmd = new XSCommand(XS_CMD_SEARCH_SET_MISC, $arg1, $arg2); $this->execCommand($cmd); return $this;} 设置同义词搜索的权重比例

29.XSTokenizerScws::hasWord

...sWord($text, $xattr){ $text = $this->applySetting($text); $cmd = new XSCommand(XS_CMD_SEARCH_SCWS_GET, XS_CMD_SCWS_HAS_WORD, 0, $text, $xattr); $res = self::$_server->execCommand($cmd, XS_CMD_OK_INFO); return $res->buf === 'OK';} 判断是否包含指定词性的词

30.XSSearch::setDocOrder

...D_SORT_TYPE_DOCID | ($asc ? XS_CMD_SORT_FLAG_ASCENDING : 0); $cmd = new XSCommand(XS_CMD_SEARCH_SET_SORT, $type); $this->execCommand($cmd); return $this;} 设置结果按索引入库先后排序 注意, 此项排序不影响相关排序, 权重高的仍会在前面, 主要适合用于...

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