hasIndexSelf() 方法 public bool hasIndexSelf() {return} bool 若需要返回 true, 不需要则返回 false 源码: sdk/php/lib/XSFieldScheme.class.php#L394 (显示) public function hasIndexSelf(){ return ($this->flag & self::FLAG_INDEX_SELF) ? true : false;} 判断当...
...D_SEARCH_SCWS_GET, XS_CMD_SCWS_GET_TOPS, $limit, $text, $xattr); $res = self::$_server->execCommand($cmd, XS_CMD_OK_SCWS_TOPS); while ($res->buf !== '') { $tmp = unpack('Itimes/a4attr/a*word', $res->buf); $tmp['word'] = XS::convert($tmp['word'], self::$_charset, 'UTF-8'); ...
...il.class.php#L82 (显示) public static function convertOut($buf){ if (self::$charset !== null) { return XS::convert($buf, self::$charset, 'UTF-8'); } return $buf;} 把 UTF-8 字符串转换为用户编码
...til.class.php#L95 (显示) public static function convertIn($buf){ if (self::$charset !== null) { return XS::convert($buf, 'UTF-8', self::$charset); } return $buf;} 把用户输入的字符串转换为 UTF-8 编码
...置为string? index = both;如果type = title 请问我可以设置为self吗? tokenizer = default;默认scws分词器 cutlen = 0 weight = 5 phrase = no;关闭精确检索 non_bool = no;要实现默认的匹配度排序 我需要yes这个? [lid];图集属于哪个类目ID 非唯一 ...
...d(); } catch (Exception $e) { } } foreach (self::$_adds as $srv) { $srv->close(); } self::$_adds = array(); parent::__destruct();} 析构函数 在此自动关闭开启的 rebuild
...pond(){ // check socket if ($this->_sock === null || $this->_flag & (self::BROKEN | self::FILE)) { return false; } $wfds = $xfds = array(); $rfds = array($this->_sock); $res = stream_select($rfds, $wfds, $xfds, 0, 0); return $res > 0;} 判断服务端是否有可读...
...open($conn){ $this->close(); $this->_conn = $conn; $this->_flag = self::BROKEN; $this->_sendBuffer = ''; $this->_project = null; $this->connect(); $this->_flag ^= self::BROKEN; if ($this->xs instanceof XS) { $this->setProject($this->xs->getName()); }} 打开服...
...server.index = 8383 server.search = 8384 [userid] type = id [my1] index = self [my2] index = self [my3] index = self phrase = yes 我想在 my3 中,词语按照一定顺序查询,查看文档后得不到结果 例如 我要在my3按照这样的顺序查找 CSB-YP,zer,two,six,one,thr,thr ...
...lass.php#L414 (显示) public function getCustomTokenizer(){ if (isset(self::$_tokenizers[$this->tokenizer])) { return self::$_tokenizers[$this->tokenizer]; } else { if (($pos1 = strpos($this->tokenizer, '(')) !== false && ($pos2 = strrpos($this->tokenizer, ')', $...