[php] $xs = new Search('demo'); $index = $xs->index; $index->beginRebuild(); while (true) { //无视读取数据部分,一次读取100条数据 $index->openBuffer(); foreach ($wikis as $wiki) { $array = array( 'pid' => ...
...?? 行以后,返回什么结果是正确的结果呢 /usr/local/xunsearch/sdk/php/util/Quest.php -p demo -c gbk -q 桌面 --limit=2 返回 Object id #10 0 ../lib/XS.php(2246): XSServer->read(8) 1 ../lib/XS.php(2231): XSServer->getRespond() 2 ../lib/XS.php(2208): XSServer->execCommand(Arr...
...?? 行以后,返回什么结果是正确的结果呢 /usr/local/xunsearch/sdk/php/util/Quest.php -p demo -c gbk -q 桌面 --limit=2 返回 Object id #10 0 ../lib/XS.php(2246): XSServer->read(8) 1 ../lib/XS.php(2231): XSServer->getRespond() 2 ../lib/XS.php(2208): XSServer->execCommand(Arr...
大家好,我的xunsearch更新索引有点问题: 执行更新后提示错误:[21-Dec-2012 16:13:14] 致命的运行时错误(E_ERROR) Uncaught [XSException] ../xunsearch/sdk/php/lib/XS.php(1018): Missing value of primarky key (FIELD:_ID) thrown /var/www/xunsearch/sdk/php/lib/XS.php 1018 ...
...0912 bytes exhausted (tried to allocate 1046898225 bytes) in /var/www/html/search/dict/xdb.class.php on line 638 我也碰到同樣的問題,換一台主機依舊有問題 謝謝 ,問題是 638 行 : $rec['value'] = fread($this->fd, $rec['vlen']); 不可能超過 1gb 我有看到 gen_dict.c...
...ct.name = s1 project.default_charset = utf-8 server.index = 8383 server.search = 8384 [xsid] type = id [pid] tokenizer = full type = numeric index = self [tid] type = string index = self tokenizer = full [fid] type = string index = self tokenizer = full [title] index = bot...
...me = test_qw project.default_charset = utf-8 server.index = 8383 server.search = 8384 [docno] type = id ;文档号 [title] type = title; 文章标题 [date] type = numeric ; 日期 index = self [text] type = body ;内容 下面 Linux CentOS.64 Intel(R) Xeon(R) CPU E3...
...索词为键, 搜索指数为值的关联数组 源码: sdk/php/lib/XSSearch.class.php#L673 (显示) public function getHotQuery($limit = 6, $type = 'total'){ $ret = array(); $limit = max(1, min(50, intval($limit))); // query from log_db $this->xs->setScheme(XSFieldScheme::logger())...
...y(); $text = $this->applySetting($text); $cmd = new XSCommand(XS_CMD_SEARCH_SCWS_GET, XS_CMD_SCWS_GET_TOPS, $limit, $text, $xattr); $res = self::$_server->execCommand($cmd, XS_CMD_OK_SCWS_TOPS); while ($res->buf !== '') { $tmp = unpack('Itimes/a4attr/a*word', $res->buf); $t...
经过一番测试。。。 修改xs.php的search() 在1556行的$this->logQuery(); 改成: [php]if(strpos($_SERVER['REQUEST_URI'],'你的域名')) $this->logQuery();[/php] 即可过滤所有搜索引擎访问查询时自动写入搜索日志记录!~! 我不清楚REQUEST的结果是不...