...据不加入索引 源码: sdk/php/util/XSDataSource.class.php#L969 (显示) public function process($data, $cs = false); 字段数据处理函数 processDoc() 方法 (自版本 v1.3.4 起可用) abstract public void processDoc(XSDocument $doc) $doc XSDocument 索引文档...
...容 type = body [post_content_full] //全部内容 cutlen = 300 //显示300个字节 [post_title] //标题 type = title [post_time] //时间YYYYmmdd形式 type = date [post_date_sec] //时间戳 [category] //分类 index = self [category_id //分类ID type = numeric in...
...ELECT ID, title, content FROM dede_article" --project=search [/code] 结果显示成功索引556752条数据 3、测试搜索 [code]util/Quest.php search NBA[/code] 显示: [code]在 181,298条数据中,大约有 3880 条包含NBA[/code] 可是我添加索引的那个数据库数据量有556...
...tected void deinit() 源码: sdk/php/util/XSDataSource.class.php#L211 (显示) protected function deinit(){ $this->db->close();} getCharset() 方法 public mixed getCharset() {return} mixed 如果数据库不支持 UTF-8 转换则返回 false 源码: sdk/php/util/X...
...{return} string 源码: sdk/php/util/XSDataSource.class.php#L913 (显示) protected function makeDsn($param){ $dsn = "pgsql:host={$param['host']};"; $dsn .= isset($param['port']) ? "port={$param['port']};" : ''; $dsn .= "dbname={$param['dbname']};client_encoding=utf-8"; return ...
...tected void deinit() 源码: sdk/php/util/XSDataSource.class.php#L287 (显示) protected function deinit(){ if ($this->fd) { fclose($this->fd); $this->fd = null; }} getDataList() 方法 protected void getDataList() 源码: sdk/php/util/XSDataSource.class.p...
... 最大长度为 255字节 源码: sdk/php/lib/XSServer.class.php#L62 (显示) public function __construct($cmd, $arg1 = 0, $arg2 = 0, $buf = '', $buf1 = ''){ if (is_array($cmd)) { foreach ($cmd as $key => $value) { if ($key === 'arg' || property_exists($this, $key)) { ...
... $previous Exception 源码: sdk/php/lib/XS.class.php#L134 (显示) public 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,...
...{return} string 源码: sdk/php/util/XSDataSource.class.php#L877 (显示) protected function makeDsn($param){ $dsn = 'mysql:host=' . (isset($param['host']) ? $param['host'] : 'localhost'); if (isset($param['port']) && $param['port'] !== 3306) { $dsn .= ';port=' . $param['port'...
...进行编码转换, 默认为 true {return} array 可用于高亮显示的词条列表 源码: sdk/php/lib/XSSearch.class.php#L515 (显示) public function terms($query = null, $convert = true){ $query = $query === null ? '' : $this->preQueryString($query); if ($query === '' && $t...