...ing='第一个新增词', $ignore = true, $duality = false, $multi = 3) { this -> cws -> addDict('/res/category/dict_1.txt',SCWS_XDICT_TXT); var_dump($this -> cws ->hasWord("新增词","n")); $this -> cws -> setduality($duality); $this -> cws -> setignore($ignore); $this -> cws -> setmulti($mu...
... public function getAddIndex($field){ $field = strval($field); if ($this->_texts === null || !isset($this->_texts[$field])) { return null; } return $this->autoConvert($this->_texts[$field]);} 获取字段的附加索引文本 (仅限索引文档)
...r.class.php#L185 (显示) public function reopen($force = false){ if ($this->_flag & self::BROKEN || $force === true) { $this->open($this->_conn); } return $this;} 重新打开连接 仅应用于曾经成功打开的连并且异常关闭了
...function __construct($code, $message, $file, $line, $previous = null){ $this->_file = $file; $this->_line = $line; if (version_compare(PHP_VERSION, '5.3.0', '>=')) { parent::__construct($message, $code, $previous); } else { parent::__construct($message, $code); }} ...
...urce.class.php#L569 (显示) public function close(){ if (is_resource($this->link)) { pg_close($this->link); $this->link = null; }} 关闭数据库连接 connect() 方法 public void connect($param) $param 源码: sdk/php/util/XSDataSource.class.php#L...
...s.php#L56 (显示) public function __construct($p = null, $d = null){ $this->_data = array(); if (is_array($p)) { $this->_data = $p; } elseif (is_string($p)) { if (strlen($p) !== self::$_resSize) { $this->setCharset($p); return; } $this->_m...
...urce.class.php#L30 (显示) public function __construct($type, $arg){ $this->type = $type; $this->arg = $arg; $this->inCli = php_sapi_name() === 'cli'; $this->init();} 构造函数
...XSSearch.class.php#L69 (显示) public function setCharset($charset){ $this->_charset = strtoupper($charset); if ($this->_charset == 'UTF8') { $this->_charset = 'UTF-8'; } return $this;} 设置字符集 默认字符集是 UTF-8, 如果您提交的搜索语句和预期得到...
...ib/XSSearch.class.php#L227 (显示) public function setQuery($query){ $this->clearQuery(); if ($query !== null) { $this->_query = $query; $this->addQueryString($query); } return $this;} 设置默认搜索语句 用于不带参数的 count 或 search 以及 terms 调用...
...til/XSDataSource.class.php#L768 (显示) public function close(){ if ($this->obj) { $this->obj->close(); $this->obj = null; }} 关闭数据库 connect() 方法 public void connect(array $param) $param array 连接参数, 包含: path 源码: sdk/php/uti...