搜索

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

11.XSUtil::copyDir

...is_dir($dst) && !@mkdir($dst, 0755, true))) { return false; } while (($entry = $dir->read()) !== false) { if ($entry === '.' || $entry === '..') { continue; } $psrc = $src . DIRECTORY_SEPARATOR . $entry; $pdst = $dst . DIRECTORY_SEPARATOR . $entry;...

12.RE: 第四版遇到()和中英文混合分词的问题。

发布时间:2009-06-14 21:06 t By hightman

楼上你的情况是因为你对API使用不正确, scws_get_result 应该循环调用 while ($words = scws_get_result($sh)) { foreach ($words as $word) { print_r($word); } } 此外, 繁体词库很不完善, 缺词太多而且有一些词也不正确

13.XSDatabaseMySQL::query

...rce($res)) { $ret = $res; } else { $ret = array(); while ($tmp = mysql_fetch_assoc($res)) { $ret[] = $tmp; } mysql_free_result($res); } return $ret;} 执行 SQL 语句查询

14.XSDataSource::getData

...此函数提取数据, 每条数据是由字段名为键的关联数组 while ($ds->getData() !== false) { ... }

15.XSDatabaseSQLite3::query

...ect($res)) { $ret = $res; } else { $ret = array(); while ($tmp = $res->fetchArray(SQLITE3_ASSOC)) { $ret[] = $tmp; } $res->finalize(); } return $ret;} 执行 SQL 语句查询

16.RE: 布尔搜索问题

发布时间:2012-01-09 18:01 t By a114708367

FastCGI sent in stderr: "Data/Name too long" while reading response header from upstream, client: xxx.xxx.xxx.xxx, server: www.xxx.xxx, request: "GET /search?q=source%3Aqiyi+type%3Avideo+tag%3A%E7%94%B5%E5%BD%B1+OR+tag%3A%E6%83%8A %E6%82%9A+OR+tag%3A%E7%8A%AF%E7%BD%AA+OR+tag%3A%E7%88%B1%E6%83...

17.重启xunsearch

更新时间:2012-03-27 10:03 t By bigxu

... -eq 0 ]; then echo 1 else echo 0 fi } while [ true ] do res=$(get_check_per $1) while [ $try_times -gt 0 ] do try_times=$(expr $try_times - 1 ) if [[ $res == "0" ]]; then $ctl_path fastrestart echo $(dat...

18.RE:1262

发布时间:2008-01-14 21:01 t By xueron

...t_ignore(1); $scws->set_multi(1); my $s = shift; $scws->send_text($s); while (my $r = $scws->get_result()) { foreach (@$r) { print $_->{word}, " "; } } print "\n"; [/code] [code] $perl test.pl 核心提示:14日下午,中国总理温家宝与来访的印度总理辛...

19.XSTokenizerScws::getResult

...t); $res = self::$_server->execCommand($cmd, XS_CMD_OK_SCWS_RESULT); while ($res->buf !== '') { $tmp = unpack('Ioff/a4attr/a*word', $res->buf); $tmp['word'] = XS::convert($tmp['word'], self::$_charset, 'UTF-8'); $words[] = $tmp; $res = self::$_server->getRespond(); ...

20.RE: 测试环境运行了几天,昨天出现一个错误

发布时间:2011-12-26 16:12 t By KnightE

...,我调试了XS.php中的XSSearch类的search()方法,断电调试了while(true)中$res的变化,发现终止在了facets相关的处理上,把setFacets()的true改为false后恢复。 但是,这个修改并没有终止报错,修改之后基于上面document xxx not found的错误还...

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