更新索引后检索不成功啊,求指教。[img]http://mon.d1505.com/mmcms/tt.jpg[/img] 已经过去N秒了...
... XSServer->__construct(8383, Object(XS)) #4 ../phplib/XS.php(222): XS->getIndex() #5 ../phputil/Indexer.php(121): XSComponent->__get('index') #6 {main} 连接局域网内其他主机mysql是出的错误 命令如下: util/Indexer.php -p discuz --source=mysql://aaa:bbb@192.168.0.1/bbs --sql...
...件如下 project.name = entry project.default_charset = UTF-8 server.index = 10.1.20.51:8383 server.search = 10.1.20.51:8384 [tblog_entry_id] type = id [content] type = string index = both [user_id] type = numeric index = self tokenizer = full [post_time] type = numeric in...
...ch.ini [code] project.name = search project.default_charset = utf-8 server.index = 8383 server.search = 8384 [ID] type = id [title] type = title [content] type = body [/code] 2、索引 [code] util/Indexer.php --source=mysql://root:pwd@localhost/dede --sql="SELECT ID, title, content FROM dede_art...
util/Indexer.php --rebuild --source, rebuild 是配合--source来使用的,详看[url=http://www.xunsearch.com/doc/php/guide/util.indexer#ch5]说明[/url]。具体用法为: # 导入 MySQL 数据库的 dbname.tbl_post 表到 demo 项目中,并且平滑重建 util/Indexer.php --rebuild --sour...
getIndex() 方法 public XSIndex getIndex() {return} XSIndex 索引操作对象 源码: sdk/php/lib/XS.class.php#L406 (显示) public function getIndex(){ if ($this->_index === null) { $adds = array(); $conn = isset($this->_config['server.index']) ? $this->_confi...
Fatal error: 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 ...
[php] $xs = new Search('demo'); $index = $xs->index; $index->beginRebuild(); while (true) { //无视读取数据部分,一次读取100条数据 $index->openBuffer(); foreach ($wikis as $wiki) { $array = array( 'pid' => ...
XSIndex 索引管理 通过 [XSIndex] 对象实现索引数据库的增、删、改等相关操作。实现使用过程中并不需要 自行创建该对象,而是直接访问 [XS::index] 即可。 ~~~ [php] require '$prefix/sdk/php/lib/XS.php'; $xs = new XS('demo'); $index = $xs...
beforeSubmit() 方法 public bool beforeSubmit(XSIndex $index) $index XSIndex 索引操作对象 {return} bool 默认返回 true, 若返回 false 将阻止该文档提交到索引服务器 源码: sdk/php/lib/XSDocument.class.php#L331 (显示) public function beforeSubmit...