...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';} 获取项目的默认字符集
...新,可以使用 util/Indexer.php --flush-log dream 强制刷新一下就显示搜索建议了。。。[/color]
...个有效的字段方案对象 源码: 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(); }} 设置当前在用的字段方案
setUtf8() 方法 public void setUtf8() 源码: sdk/php/util/XSDataSource.class.php#L600 (显示) public function setUtf8(){ pg_set_client_encoding($this->link, 'UTF8');} 将输出字符集设置为 UTF-8
...路径 $arg 源码: sdk/php/util/XSDataSource.class.php#L30 (显示) public function __construct($type, $arg){ $this->type = $type; $this->arg = $arg; $this->inCli = php_sapi_name() === 'cli'; $this->init();} 构造函数