搜索

大约有 277 项符合查询结果, 库内数据总量为 3,513 项。 (搜索耗时:0.0052秒)

151.XSTokenizerScws::getTokens

...ction getTokens($value, XSDocument $doc = null){ $tokens = array(); $this->setIgnore(true); // save charset, force to use UTF-8 $_charset = self::$_charset; self::$_charset = 'UTF-8'; $words = $this->getResult($value); foreach ($words as $word) { $tokens[] = $word['word']...

152.XSDatabaseMySQL::setUtf8

... public function setUtf8(){ if (version_compare(mysql_get_server_info($this->link), '4.1.0', '>=')) { return @mysql_query("SET NAMES utf8", $this->link); } return false;} 将输出字符集设置为 UTF-8

153.XSSearch::setFuzzy

...earch.class.php#L84 (显示) public function setFuzzy($value = true){ $this->_defaultOp = $value === true ? XS_CMD_QUERY_OP_OR : XS_CMD_QUERY_OP_AND; return $this;} 开启模糊搜索 默认情况只返回包含所有搜索词的记录, 通过本方法可以获得更多搜索结果

154.XSDatabasePDO::connect

...ource.class.php#L818 (显示) public function connect($param){ $dsn = $this->makeDsn($param); $user = isset($param['user']) ? $param['user'] : 'root'; $pass = isset($param['pass']) ? $param['pass'] : ''; try { $this->obj = new PDO($dsn, $user, $pass); } catch (PDOException $e)...

155.XSDocument::__set

...ment.class.php#L93 (显示) public function __set($name, $value){ if ($this->_meta !== null) { throw new XSException('Magick property of result document is read-only'); } $this->setField($name, $value);} 魔术方法 __set 实现以对象属性方式设置文档字段值

156.RE: [特别发布] 纯PHP编写的xdb词典导入导出工具!!

发布时间:2010-03-04 21:03 t By hightman

现在导出的错误已经得到修正,错误原因在于 Next() 中误把 $this->hash_prime写成了$this->hash_base

157.Indexer 导入数据和 mysql查询结果不一致, why??

更新时间:2013-09-25 13:09 t By airowner

.... 不知错在哪里了, 求解答[hr] oh my god , 这.... 203 $this->sql = $sql; 204 if ($this->limit == 0) { 205 $sql = preg_replace('/SELECT\s+.+?FROM\s/i', 'SELECT COUNT(*) AS count FROM ', $sql); 206 $res = $this->db->query1($sql); 207 $thi...

158.XSDatabasePgSQL::query

...nction query($query){ //echo "[DEBUG] SQL: $sql\n"; $res = pg_query($this->link, $query); if ($res === false) { throw new XSException('PgSQL ERROR: ' . pg_last_error($this->link)); } $ret = array(); while ($tmp = pg_fetch_assoc($res)) { $ret[] = $tmp; } pg_free_...

159.XSSearch::setSynonymScale

... 255)); $cmd = new XSCommand(XS_CMD_SEARCH_SET_MISC, $arg1, $arg2); $this->execCommand($cmd); return $this;} 设置同义词搜索的权重比例

160.安装scws-1.2.1时遇到的问题

发布时间:2013-02-01 13:02 t By fktuli

...xdb_open’: xdb.c:171:21: error: ‘LOCK_EX’ undeclared (first use in this function) xdb.c:171:21: note: each undeclared identifier is reported only once for each function it appears in xdb.c: In function ‘xdb_create’: xdb.c:213:20: error: ‘LOCK_EX’ undeclared (first use in this funct...

  • 时间不限
  • 按相关性排序