...;server.index = 8383 ;server.search = 8384 [pid] type = id [fid] index = self tokenizer = full [tid] [first] index = self tokenizer = full [author] index = both [authorid] [subject] type = title [message] type = body [dateline] type = numeric ~~~ [1]: http://www.xunsearch.com/tools/iniconf...
...[gid] type = id [name] type = title tokenizer = GameName [ranking] index=self[hr] 问题是:加了权重提升 还是排在后面[hr] [ranking] index=self tokenizer = full 重建索引后 搜索结果还是一样
...ite($buf); // return true directly for local file if ($this->_flag & self::FILE) { return true; } // got the respond $res = $this->getRespond(); // check respond if ($res->cmd === XS_CMD_ERR && $res_cmd != XS_CMD_ERR) { throw new XSException($res->buf, $res->arg); ...
...50:8383 server.search = 192.168.0.250:8384 [tid] type = id [fid] index = self tokenizer = full [author] [authorid] index = self tokenizer = full [postdate] tokenizer = full [subject] type = title [content] type = body #导入 php util/Indexer.php --rebuild --source=mysql://数据库用户名...
...arch = 8384 [did] type = id [title] type = title [tag] index = self [summary] index = both [content] type = body [/php] 这个是用命令行随便搜的几个,都是0.5+秒的。 [attachment=58] 由于我都是按照默认的来装的,并用官方提供的代码生...
... $file = $file2; } } $this->loadIniFile($file); self::$_lastXS = $this;} 构造函数 特别说明一个小技巧, 参数 $file 可以直接是配置文件的内容, 还可以是仅仅是文件名, 如果只是文件名会自动查找 XS_LIB_ROOT/../app/$file.ini __...
...nizer = default ; 销售数量 [sales_amount] type = numeric index = self ; 价格 [price] type = numeric ; 上架时间 [uptime] type = numeric ; 商品类型 [goods_type] tyep = string tokenizer = full ; 商品权重 [weight] type = numeric ; 配送范围 [scope] ty...
...d(); } catch (Exception $e) { } } foreach (self::$_adds as $srv) { $srv->close(); } self::$_adds = array(); parent::__destruct();} 析构函数 在此自动关闭开启的 rebuild add() 方法 public XSIndex add(XSDocument $doc) $doc ...
...arch = 8384 [did] type = id [title] type = title [tag] index = self [content] type = body[/code] 其中did为hdwiki每个词条唯一的编号(这个与url对应) title为词条的名字(需要能搜索) tag为词条的标签(需要能搜索) content为词条内容...
...this->xs->setScheme(XSFieldScheme::logger()); try { $this->setDb(self::LOG_DB)->setLimit($limit); if ($type !== 'lastnum' && $type !== 'currnum') { $type = 'total'; } $result = $this->search($type . ':1'); foreach ($result as $doc) /* @var $doc XSDocu...