...rver getScwsServer() {return} XSServer 分词服务器 源码: sdk/php/lib/XS.class.php#L467 (显示) public function getScwsServer(){ if ($this->_scws === null) { $conn = isset($this->_config['server.search']) ? $this->_config['server.search'] : 8384; $this->_scws = ne...
... {return} XSIndex 返回自身对象以支持串接操作 源码: sdk/php/lib/XSIndex.class.php#L72 (显示) public function add(XSDocument $doc){ return $this->update($doc, true);} 添加文档到索引中 特别要注意的是: 系统不会自动检测主键是否冲突, 即便已...
__unset() 方法 public void __unset(string $name) $name string 属性名称 源码: sdk/php/lib/XS.class.php#L231 (显示) public function __unset($name){ $this->__set($name, null);} 魔术方法 __unset 删除、取消模拟属性, 相当于设置属性值为 null
...d getTokens($value, $doc=NULL) $value $doc 源码: sdk/php/lib/XSTokenizer.class.php#L86 (显示) public function getTokens($value, XSDocument $doc = null){ if (strlen($this->arg) > 2 && substr($this->arg, 0, 1) == '/' && substr($this->arg, -1, 1) == '/') { return ...
...转换字符串 {return} string 转换后的字符串 源码: sdk/php/util/XSUtil.class.php#L82 (显示) public static function convertOut($buf){ if (self::$charset !== null) { return XS::convert($buf, self::$charset, 'UTF-8'); } return $buf;} 把 UTF-8 字符串转...
... public string getVersion() {return} string 版本号 源码: sdk/php/lib/XSTokenizer.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 $...
...转换字符串 {return} string 转换后的字符串 源码: sdk/php/util/XSUtil.class.php#L95 (显示) public static function convertIn($buf){ if (self::$charset !== null) { return XS::convert($buf, 'UTF-8', self::$charset); } return $buf;} 把用户输入的字符...
... public int getDbTotal() {return} int 数据总量 源码: sdk/php/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); re...
...数据数组, 返回 false 表示本条数据不加入索引 源码: sdk/php/util/XSDataSource.class.php#L969 (显示) public function process($data, $cs = false); 字段数据处理函数