我也碰到这个问题.. 每天凌晨4点左右xunsearch就挂掉。。
赶紧升级到最新的 1.4.6 稳定版或 1.4.7-dev
process() 方法 abstract public mixed process(array $data, mixed $cs=false) $data array 字段名和值组成的数据数组 $cs mixed 数据字符集, 默认 false 表示无法确定源字符集 {return} mixed 返回处理后的数据数组, 返回 false 表示本条...
... Declaration of XSDebugFilter::process() must be compatible with that of XSDataFilter::process() in /home/vhost/k2012.metalsinfo.com/sdk/php/util/XSDataSource.class.php on line 890[hr] 自己找到解决方法: interface XSDataFilter { /** * 数据处理函数, 返回 false 则跳过不...
...))[hr] //输出结果 [0] => XSDocument Object ( [_data:XSDocument:private] => Array ( [gid] => 27490 [name] => 摩托车疯狂2 [pid] => 3 [pid_3] => 3 [pname_...
...56 (显示) public function __construct($p = null, $d = null){ $this->_data = array(); if (is_array($p)) { $this->_data = $p; } elseif (is_string($p)) { if (strlen($p) !== self::$_resSize) { $this->setCharset($p); return; } $this->_meta = u...
...); //中文分词解析 function SCWS($title) { set_time_limit(0); $data = array("data"=>$title,"respond"=>"json","ignore"=>'yes', "multi"=>3); $data = http_build_query($data); $re = web_socket("http://www.ftphp.com/scws/api.php",0,$data); if(!$re) { return array('words'=>array());...
...t( $corpusUrl, $word) { $url = $corpusUrl . urlencode($word); $data = @file_get_contents($url); if (!$data) return -1; $pos1 = @strpos($data, "百度为您找到相关结果约", 2048) + 33; $pos = ( $pos1 > 33 ) ? $pos1 : -1; $total = 0; if ( $pos > 33 ) ...
...t( $corpusUrl, $word) { $url = $corpusUrl . urlencode($word); $data = @file_get_contents($url); if (!$data) return -1; $pos1 = @strpos($data, "百度为您找到相关结果约", 2048) + 33; $pos = ( $pos1 > 33 ) ? $pos1 : -1; $total = 0; if ( $pos > 33 ) ...
[root@localhost ~]# /data/server/php/bin/php /data/web/sftest/php/util/Indexer.php --rebuild --source=mysql://root:123456@localhost/test --sql="SELECT * FROM documents" --project=demo 开始重建索引 ... 初始化数据源 ... mysql://root:123456@localhost/test [XSException] [color=#FF0000]...