搜索

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

21.XSSearch::getCorrectedQuery

...ction getCorrectedQuery($query = null){ $ret = array(); try { if ($query === null) { if ($this->_count > 0 && $this->_count > ceil($this->getDbTotal() * 0.001)) { return $ret; } $query = $this->cleanFieldQuery($this->_query); } ...

22.XSServer::read

...示) protected function read($len){ // quick return for zero size if ($len == 0) { return ''; } // loop to send data $this->check(); for ($buf = '', $size = $len;;) { $bytes = fread($this->_sock, $len); if ($bytes === false || strlen($bytes) == 0) { ...

23.XSTokenizerScws::__construct

...izer.class.php#L188 (显示) public function __construct($arg = null){ if (self::$_server === null) { $xs = XS::getLastXS(); if ($xs === null) { throw new XSException('An XS instance should be created before using ' . __CLASS__); } self::$_server = $xs->get...

24.scws_has_word的逻辑问题

更新时间:2010-07-29 14:07 t By backluck

...cws_res_t res, cur; char *word; word_attr *at = NULL; if (!s || !s->txt) return 0; __PARSE_XATTR__; // save the offset. (cnt -> return_value) off = s->off; cnt = s->off = 0; while (!cnt && (cur = res = scws_get_result(s)) != NULL) { ...

25.XSTokenizerXstep

...izer.class.php#L137 (显示) public function __construct($arg = null){ if ($arg !== null && $arg !== '') { $this->arg = intval($arg); if ($this->arg < 1 || $this->arg > 255) { throw new XSException('Invalid argument for ' . __CLASS__ . ': ' . $arg); } }} ...

26.RE: 遇到一个分词错误的问题

更新时间:2014-02-13 10:02 t By robinjia

...怎么解决呢?[hr] 依然是对scws.c进行修改,同样是890行, if ((r1->flag & SCWS_ZRULE_PREFIX) && (i < (zlen - clen))) { /* prefix, check after (zmin~zmax) */ // 先检查 zmin 字内是否全部符合要求 // 再在 zmax 范围内取得符合要求的字 // int i, j, k, ch, clen, s...

27.RE: 报告一个内存泄露bug,1.1.6版本

发布时间:2011-05-08 00:05 t By hightman

...的影响也比较轻,所以暂不强制提供升级版本。 [code] diff -c -r1.20 scws.c *** scws.c 19 Apr 2011 08:00:23 -0000 1.20 --- scws.c 7 May 2011 14:57:49 -0000 *************** *** 1328,1334 **** } // free at ! free(at); top = NU...

28.RE: scws_has_word的逻辑问题

发布时间:2010-08-02 11:08 t By backluck

...cws_res_t res, cur; char *word; word_attr *at = NULL; if (!s || !s->txt) return 0; __PARSE_XATTR__; // save the offset. (cnt -> return_value) off = s->off; cnt = s->off = 0; while (!cnt && (cur = res = scws_get_result(s)) != NULL) { ...

29.XSDatabaseMySQL

...php/util/XSDataSource.class.php#L498 (显示) public function close(){ if ($this->link) { mysql_close($this->link); $this->link = null; }} 关闭数据库连接 connect() 方法 public void connect(array $param) $param array 连接参数, 包含: user,pass,...

30.使用讯搜搭建phpwind的全文检索

更新时间:2012-05-18 09:05 t By myoula

... content from pw_threads t left join pw_tmsgs tm on t.tid = tm.tid where t.ifcheck = 1 and t.fid != 0 and t.fid !=444 order by t.tid asc" --project=项目名 4 建立phpwind的索引队列 #建立队列表 mysql -uroot -p 你的phpwind数据库名 CREATE TABLE `mq` ( `mid` int(10) unsigned NOT NU...

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