...不存在返回 false 源码: sdk/php/lib/XSDocument.class.php#L287 (显示) public function offsetExists($name){ return isset($this->_data[$name]);} ArrayAccess 接口, 判断字段是否存在, 勿直接调用
...ng 自定义词库内容 源码: sdk/php/lib/XSIndex.class.php#L484 (显示) public function getCustomDict(){ $res = $this->execCommand(XS_CMD_INDEX_USER_DICT, XS_CMD_OK_INFO); return $res->buf;} 获取自定义词典内容
... 设置文档字符集 源码: sdk/php/lib/XSDocument.class.php#L132 (显示) public function setCharset($charset){ $this->_charset = strtoupper($charset); if ($this->_charset == 'UTF8') { $this->_charset = 'UTF-8'; }} 设置文档字符集
... {return} XSServer 源码: sdk/php/lib/XSIndex.class.php#L33 (显示) public function addServer($conn){ $srv = new XSServer($conn, $this->xs); self::$_adds[] = $srv; return $srv;} 增加一个同步索引服务器
... protected void check() 源码: sdk/php/lib/XSServer.class.php#L438 (显示) protected function check(){ if ($this->_sock === null) { throw new XSException('No server connection'); } if ($this->_flag & self::BROKEN) { throw new XSException('Broken server connection'); ...
__construct() 方法 public void __construct($arg=NULL) $arg 源码: sdk/php/lib/XSTokenizer.class.php#L79 (显示) public function __construct($arg = null){ if ($arg !== null && $arg !== '') { $this->arg = $arg; }}
...ng 默认字符集(已大写) 源码: sdk/php/lib/XS.class.php#L387 (显示) public function getDefaultCharset(){ return isset($this->_config['project.default_charset']) ? strtoupper($this->_config['project.default_charset']) : 'UTF-8';} 获取项目的默认字符集
...个有效的字段方案对象 源码: sdk/php/lib/XS.class.php#L334 (显示) public function setScheme(XSFieldScheme $fs){ $fs->checkValid(true); $this->_scheme = $fs; if ($this->_search !== null) { $this->_search->markResetScheme(); }} 设置当前在用的字段方案
...lue mixed 字段值 源码: sdk/php/lib/XSDocument.class.php#L309 (显示) public function offsetSet($name, $value){ if (!is_null($name)) { $this->__set(strval($name), $value); }} ArrayAccess 接口, 设置字段值, 勿直接调用
...e $doc 源码: sdk/php/lib/XSTokenizer.class.php#L116 (显示) public function getTokens($value, XSDocument $doc = null){ $terms = array(); for ($i = 0; $i < strlen($value); $i += $this->arg) { $terms[] = substr($value, $i, $this->arg); } return $terms;}