搜索

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

121../sdk/php/util/Indexer.php --source=csv --clean demo

更新时间:2012-04-26 11:04 t By hfaidzh

...ib/XS.php(2205): stream_set_blocking() expects parameter 1 to be resource, null given(2) #0 [internal function]: xs_error_handler(2, 'stream_set_bloc...', '/home/wwwroot/x...', 2205, Array) #1 sdk/php/lib/XS.php(2205): stream_set_blocking(NULL, true) #2 sdk/php/lib/XS.php(2025): XSServer->connect() ...

122.XSUtil::convertIn

...显示) public static function convertIn($buf){ if (self::$charset !== null) { return XS::convert($buf, 'UTF-8', self::$charset); } return $buf;} 把用户输入的字符串转换为 UTF-8 编码

123.XSUtil::setCharset

...(显示) public static function setCharset($charset){ if ($charset !== null && strcasecmp($charset, 'utf8') && strcasecmp($charset, 'utf-8')) { self::$charset = $charset; ob_start(array(__CLASS__, 'convertOut')); }} 设置输出、输入编码 默认输出的中文编码均...

124.RE: scws_has_word的逻辑问题

发布时间:2010-08-05 15:08 t By hightman

这有什么关系呢,AT为NULL时返回0也合乎情理啊。

125.XSCsvDataSource

...deinit(){ if ($this->fd) { fclose($this->fd); $this->fd = null; }} getDataList() 方法 protected void getDataList() 源码: sdk/php/util/XSDataSource.class.php#L392 (显示) protected function getDataList(){ if (($item = fgetcsv($this->fd, 0, $this->delim)...

126.xunsearch 每天不定时挂掉,原因不明

发布时间:2012-05-22 20:05 t By Asa

... wait4(-1, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV}], WNOHANG|WSTOPPED, NULL) = 24901 fcntl(3, F_SETLKW, {type=F_WRLCK, whence=SEEK_SET, start=0, len=0}) = 0 write(3, "2012-05-22 19:42:29 ~master[4232"..., 86) = 86 fcntl(3, F_SETLKW, {type=F_UNLCK, whence=SEEK_SET, start=0, len=0}) = 0 wait4(...

127.XSDocument::beforeSubmit

... public function beforeSubmit(XSIndex $index){ if ($this->_charset === null) { $this->_charset = $index->xs->getDefaultCharset(); } return true;} 重写接口, 在文档提交到索引服务器前调用 继承此类进行重写该方法时, 必须调用 parent::beforeSave($index...

128.RE: 关于搜索分页的bug

发布时间:2012-03-30 10:03 t By hightman

...一行可以改为,更具效率 $count=$search->addRange('addtime',$from,null)->count();

129.RE: 二元分词问题

更新时间:2011-11-15 13:11 t By icebolt

...最后找到问题 public function getTokens($value, XSDocument $doc = null) { $terms = array(); for ($i = 0; $i < mb_strlen($value,"utf-8"); $i += $this->arg) { $terms[] = mb_substr($value, $i, $this->arg,"utf-8"); } return $terms; } hightman可以改成这个,那中...

130.XSServer::hasRespond

... public function hasRespond(){ // check socket if ($this->_sock === null || $this->_flag & (self::BROKEN | self::FILE)) { return false; } $wfds = $xfds = array(); $rfds = array($this->_sock); $res = stream_select($rfds, $wfds, $xfds, 0, 0); return $res > 0;} 判断...

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